Class EventSiteRegistry
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Class responsible for maitaining a register of sites participating in the event framework.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Events.Providers.Internal
Assembly: EPiServer.Events.dll
Version: 11.20.7Syntax
[ServiceConfiguration(typeof(IEventSiteRegistry), Lifecycle = ServiceInstanceScope.Singleton)]
public class EventSiteRegistry : IEventSiteRegistry
Constructors
EventSiteRegistry()
Declaration
public EventSiteRegistry()
Properties
Count
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
public virtual int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Publisher
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
public virtual EventSite Publisher { get; }
Property Value
Type | Description |
---|---|
EventSite |
Subscribers
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
public virtual IEnumerable<EventSite> Subscribers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<EventSite> |
Methods
Add(EventSite, RegistrationType)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
public virtual void Add(EventSite site, RegistrationType registrationType)
Parameters
Type | Name | Description |
---|---|---|
EventSite | site | The site to add to the register. |
RegistrationType | registrationType | The type of registration to use. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown if a site already has been registered as an publisher or if the site is already registered as a subscriber. |
Clear()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
public virtual void Clear()
Remove(Guid)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
public virtual bool Remove(Guid uniqueId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | uniqueId | The unique id representing the remote site. |
Returns
Type | Description |
---|---|
System.Boolean | True if the site was found and removed; otherwise false. |