November Happy Hour will be moved to Thursday December 5th.

Class DefaultSiteDefinitionRepository

Inheritance
System.Object
DefaultSiteDefinitionRepository
Namespace: EPiServer.Web.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class DefaultSiteDefinitionRepository : Object, ISiteDefinitionRepository, ISiteDefinitionEvents

Constructors

DefaultSiteDefinitionRepository(SiteDefinitionDB, ISynchronizedObjectInstanceCache, IEventRegistry, ITimeProvider, IPrincipalAccessor)

Declaration
public DefaultSiteDefinitionRepository(SiteDefinitionDB dataAccess, ISynchronizedObjectInstanceCache cache, IEventRegistry eventRegistry, ITimeProvider timeProvider, IPrincipalAccessor principalAccessor)
Parameters
Type Name Description
SiteDefinitionDB dataAccess
ISynchronizedObjectInstanceCache cache
IEventRegistry eventRegistry
ITimeProvider timeProvider
IPrincipalAccessor principalAccessor

Fields

ChangedEventId

Declaration
public static readonly Guid ChangedEventId
Field Value
Type Description
System.Guid

EventRaiserId

Declaration
public static readonly Guid EventRaiserId
Field Value
Type Description
System.Guid

Methods

Delete(Guid)

Declaration
public virtual void Delete(Guid id)
Parameters
Type Name Description
System.Guid id

Get(Guid)

Declaration
public virtual SiteDefinition Get(Guid id)
Parameters
Type Name Description
System.Guid id
Returns
Type Description
SiteDefinition

List()

Declaration
public virtual IEnumerable<SiteDefinition> List()
Returns
Type Description
System.Collections.Generic.IEnumerable<SiteDefinition>

Save(SiteDefinition)

Declaration
public virtual void Save(SiteDefinition siteDefinition)
Parameters
Type Name Description
SiteDefinition siteDefinition

Events

SiteCreated

Declaration
public event EventHandler<SiteDefinitionEventArgs> SiteCreated
Event Type
Type Description
System.EventHandler<SiteDefinitionEventArgs>

SiteDefinitionChanged

Declaration
public event EventHandler<EventArgs> SiteDefinitionChanged
Event Type
Type Description
System.EventHandler<System.EventArgs>

SiteDeleted

Declaration
public event EventHandler<SiteDefinitionEventArgs> SiteDeleted
Event Type
Type Description
System.EventHandler<SiteDefinitionEventArgs>

SiteUpdated

Declaration
public event EventHandler<SiteDefinitionEventArgs> SiteUpdated
Event Type
Type Description
System.EventHandler<SiteDefinitionEventArgs>

Implements

Extension Methods