Interface IEventRegistry
An IEventRegistry represents a service that can be used to retrieve Event objects used to raise and receive events in EPiServer.
Namespace: EPiServer.Events.Clients
Assembly: EPiServer.Events.dll
Version: 10.10.4Syntax
public interface IEventRegistry
Properties
Enabled
Indicates if the Event system is enabled at all.
Declaration
bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Get(Guid)
Retrieves or creates an Event instance with the provided event id.
Declaration
Event Get(Guid eventId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | eventId | An event id of an Event object. |
Returns
Type | Description |
---|---|
Event | An Event object for the eventId specified. |
List()
Returns all of the Event instances registered with the EventService.
Declaration
IEnumerable<Event> List()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Event> | An enumerable of event objects |