Files
Umbraco-CMS/src/Umbraco.Core/PublishedCache/IDomainCache.cs
2020-02-24 08:21:53 +01:00

37 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Web.Routing;
namespace Umbraco.Web.PublishedCache
{
public interface IDomainCache
{
/// <summary>
/// Gets all <see cref="Domain"/> in the current domain cache, including any domains that may be referenced by documents that are no longer published.
/// </summary>
/// <param name="includeWildcards"></param>
/// <returns></returns>
IEnumerable<Domain> GetAll(bool includeWildcards);
/// <summary>
/// Gets all assigned <see cref="Domain"/> for specified document, even if it is not published.
/// </summary>
/// <param name="documentId">The document identifier.</param>
/// <param name="includeWildcards">A value indicating whether to consider wildcard domains.</param>
IEnumerable<Domain> GetAssigned(int documentId, bool includeWildcards = false);
/// <summary>
/// Determines whether a document has domains.
/// </summary>
/// <param name="documentId">The document identifier.</param>
/// <param name="includeWildcards">A value indicating whether to consider wildcard domains.</param>
bool HasAssigned(int documentId, bool includeWildcards = false);
/// <summary>
/// Gets the system default culture.
/// </summary>
string DefaultCulture { get; }
}
}