Class EventRegistry
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The EventService class is used to retrieve Event objects used to raise and receive events in EPiServer.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Events.Clients.Internal
Assembly: EPiServer.Events.dll
Version: 11.20.7Syntax
public class EventRegistry : IEventRegistry
Constructors
EventRegistry(IEventBroker)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the EventRegistry class.
Declaration
public EventRegistry(IEventBroker eventBroker)
Parameters
Type | Name | Description |
---|---|---|
IEventBroker | eventBroker | The event broker that should be used by this service. |
Properties
Enabled
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Indicates if the Event system is enabled at all.
Declaration
public virtual bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Get(Guid)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Retrieves or creates an Event instance with the provided event id.
Declaration
public virtual Event Get(Guid eventId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | eventId | An event id of an Event object |
Returns
Type | Description |
---|---|
Event | The Event object for the eventId specified |
List()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Returns all of the Event instances registered with the EventService.
Declaration
public virtual IEnumerable<Event> List()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Event> | An enumerable of event objects |