Interface IEventSiteRegistry
Represents a service responsible for maitaining a register of sites involved in the event framework.
Namespace: EPiServer.Events.Providers.Internal
Assembly: EPiServer.Events.dll
Version: 12.0.3Syntax
public interface IEventSiteRegistry
Properties
Count
Gets the number of sites registered as subscribers with this Event
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
System. |
Publisher
Gets the site that has been registered as a publisher with this Event
Declaration
EventSite Publisher { get; }
Property Value
Type | Description |
---|---|
Event |
Subscribers
Gets all sites that has been registered as subscribers with this Event
Declaration
IEnumerable<EventSite> Subscribers { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
Add(EventSite, RegistrationType)
Registers the provided site with this Event
Declaration
void Add(EventSite site, RegistrationType registrationType)
Parameters
Type | Name | Description |
---|---|---|
Event |
site | The site to add to the register. |
Registration |
registrationType | The type of registration to use. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown if a site already has been registered as an publisher or if the site is already registered as a subscriber. |
Clear()
Removes all registered sites from this Event
Declaration
void Clear()
Remove(Guid)
Removes the site with the provided uniqueId
from this Event
Declaration
bool Remove(Guid uniqueId)
Parameters
Type | Name | Description |
---|---|---|
System. |
uniqueId | The unique id representing the remote site. |
Returns
Type | Description |
---|---|
System. |
True if the site was found and removed; otherwise false. |