Search Results for

    Show / Hide Table of Contents
    View Source

    Class DomainService

    Inheritance
    System.Object
    RepositoryService
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class DomainService : RepositoryService, IDomainService, IService

    Constructors

    View Source

    DomainService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IDomainRepository)

    Declaration
    public DomainService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IDomainRepository domainRepository)
    Parameters
    Type Name Description
    ICoreScopeProvider provider
    ILoggerFactory loggerFactory
    IEventMessagesFactory eventMessagesFactory
    IDomainRepository domainRepository
    View Source

    DomainService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IDomainRepository, ILanguageService, IContentService)

    Declaration
    public DomainService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IDomainRepository domainRepository, ILanguageService languageService, IContentService contentService)
    Parameters
    Type Name Description
    ICoreScopeProvider provider
    ILoggerFactory loggerFactory
    IEventMessagesFactory eventMessagesFactory
    IDomainRepository domainRepository
    ILanguageService languageService
    IContentService contentService

    Methods

    View Source

    Delete(IDomain)

    Declaration
    public Attempt<OperationResult> Delete(IDomain domain)
    Parameters
    Type Name Description
    IDomain domain
    Returns
    Type Description
    Attempt<OperationResult>
    View Source

    Exists(String)

    Declaration
    public bool Exists(string domainName)
    Parameters
    Type Name Description
    System.String domainName
    Returns
    Type Description
    System.Boolean
    View Source

    GetAll(Boolean)

    Declaration
    public IEnumerable<IDomain> GetAll(bool includeWildcards)
    Parameters
    Type Name Description
    System.Boolean includeWildcards
    Returns
    Type Description
    IEnumerable<IDomain>
    View Source

    GetAllAsync(Boolean)

    Gets all assigned domains.

    Declaration
    public async Task<IEnumerable<IDomain>> GetAllAsync(bool includeWildcards)
    Parameters
    Type Name Description
    System.Boolean includeWildcards

    Whether or not to include wildcard domains.

    Returns
    Type Description
    Task<IEnumerable<IDomain>>
    View Source

    GetAssignedDomains(Int32, Boolean)

    Declaration
    public IEnumerable<IDomain> GetAssignedDomains(int contentId, bool includeWildcards)
    Parameters
    Type Name Description
    System.Int32 contentId
    System.Boolean includeWildcards
    Returns
    Type Description
    IEnumerable<IDomain>
    View Source

    GetAssignedDomainsAsync(Guid, Boolean)

    Gets all assigned domains for content item.

    Declaration
    public async Task<IEnumerable<IDomain>> GetAssignedDomainsAsync(Guid contentKey, bool includeWildcards)
    Parameters
    Type Name Description
    Guid contentKey

    The key of the content item.

    System.Boolean includeWildcards

    Whether or not to include wildcard domains.

    Returns
    Type Description
    Task<IEnumerable<IDomain>>
    View Source

    GetById(Int32)

    Declaration
    public IDomain GetById(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    IDomain
    View Source

    GetByName(String)

    Declaration
    public IDomain GetByName(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    IDomain
    View Source

    Save(IDomain)

    Declaration
    public Attempt<OperationResult> Save(IDomain domainEntity)
    Parameters
    Type Name Description
    IDomain domainEntity
    Returns
    Type Description
    Attempt<OperationResult>
    View Source

    Sort(IEnumerable<IDomain>)

    Declaration
    public Attempt<OperationResult> Sort(IEnumerable<IDomain> items)
    Parameters
    Type Name Description
    IEnumerable<IDomain> items
    Returns
    Type Description
    Attempt<OperationResult>
    View Source

    UpdateDomainsAsync(Guid, DomainsUpdateModel)

    Updates the domain assignments for a content item.

    Declaration
    public async Task<Attempt<DomainUpdateResult, DomainOperationStatus>> UpdateDomainsAsync(Guid contentKey, DomainsUpdateModel updateModel)
    Parameters
    Type Name Description
    Guid contentKey

    The key of the content item.

    DomainsUpdateModel updateModel

    The domain assignments to apply.

    Returns
    Type Description
    Task<Attempt<DomainUpdateResult, DomainOperationStatus>>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • DomainService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IDomainRepository)
      • DomainService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IDomainRepository, ILanguageService, IContentService)
    • Methods
      • Delete(IDomain)
      • Exists(String)
      • GetAll(Boolean)
      • GetAllAsync(Boolean)
      • GetAssignedDomains(Int32, Boolean)
      • GetAssignedDomainsAsync(Guid, Boolean)
      • GetById(Int32)
      • GetByName(String)
      • Save(IDomain)
      • Sort(IEnumerable<IDomain>)
      • UpdateDomainsAsync(Guid, DomainsUpdateModel)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX