Class EventMessageFactory
Inheritance
System.Object
EventMessageFactory
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.Providers
Assembly: EPiServer.Events.dll
Version: 8.11.0Syntax
public class EventMessageFactory : IEventMessageFactory
Constructors
EventMessageFactory(IEventSiteRegistry, IHostingEnvironment)
Declaration
public EventMessageFactory(IEventSiteRegistry eventSiteRegistry, IHostingEnvironment hostingEnvironment)
Parameters
Type | Name | Description |
---|---|---|
IEventSiteRegistry | eventSiteRegistry | |
IHostingEnvironment | hostingEnvironment |
Methods
Create(Guid, Object, Boolean)
Creates an event message with the given event identifier and parameter.
Declaration
public EventMessage Create(Guid eventId, object parameter, bool addChecksum)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | eventId | The event unique identifier. |
System.Object | parameter | The message parameter. |
System.Boolean | addChecksum | if set to |
Returns
Type | Description |
---|---|
EventMessage | A new EventMessage instance. |