SaaS CMS has officially launched! Learn more now.

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
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.Internal
Assembly: EPiServer.Events.dll
Version: 11.20.7
Syntax
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

Implements

Extension Methods