View Source
Class DomainService
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class DomainService : ScopeRepositoryService, IDomainService, IService
Constructors
View Source
DomainService(IScopeProvider, ILogger, IEventMessagesFactory, IDomainRepository)
Declaration
public DomainService(IScopeProvider provider, ILogger logger, IEventMessagesFactory eventMessagesFactory, IDomainRepository domainRepository)
Parameters
Methods
View Source
Delete(IDomain)
Declaration
public Attempt<OperationResult> Delete(IDomain domain)
Parameters
Type |
Name |
Description |
IDomain |
domain |
|
Returns
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 |
System.Collections.Generic.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 |
System.Collections.Generic.IEnumerable<IDomain> |
|
View Source
GetById(Int32)
Declaration
public IDomain GetById(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
GetByName(String)
Declaration
public IDomain GetByName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
View Source
Save(IDomain)
Declaration
public Attempt<OperationResult> Save(IDomain domainEntity)
Parameters
Type |
Name |
Description |
IDomain |
domainEntity |
|
Returns
Events
View Source
Deleted
Declaration
public static event TypedEventHandler<IDomainService, DeleteEventArgs<IDomain>> Deleted
Event Type
View Source
Deleting
Declaration
public static event TypedEventHandler<IDomainService, DeleteEventArgs<IDomain>> Deleting
Event Type
View Source
Saved
Declaration
public static event TypedEventHandler<IDomainService, SaveEventArgs<IDomain>> Saved
Event Type
View Source
Saving
Declaration
public static event TypedEventHandler<IDomainService, SaveEventArgs<IDomain>> Saving
Event Type