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

Class DefaultSiteDefinitionRepository

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Inheritance
System.Object
DefaultSiteDefinitionRepository
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class DefaultSiteDefinitionRepository : 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