Class EventRegistry
The EventService class is used to retrieve Event objects used to raise and receive events in EPiServer.
Inheritance
System.Object
EventRegistry
Implements
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.Events.Clients
Assembly: EPiServer.Events.dll
Version: 8.11.0Syntax
public class EventRegistry : IEventRegistry
Constructors
EventRegistry(IEventBroker)
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
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)
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()
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 |