Class EventMessageValidator
Inheritance
System.Object
EventMessageValidator
Namespace: EPiServer.Events.Providers.Internal
Assembly: EPiServer.Events.dll
Version: 12.0.3Syntax
public class EventMessageValidator : Object, IEventMessageValidator, IDisposable
Constructors
EventMessageValidator(IEventSiteRegistry)
Declaration
public EventMessageValidator(IEventSiteRegistry siteRegistry)
Parameters
Type | Name | Description |
---|---|---|
IEventSiteRegistry | siteRegistry |
EventMessageValidator(IEventSiteRegistry, ServiceAccessor<ITimer>)
Declaration
public EventMessageValidator(IEventSiteRegistry siteRegistry, ServiceAccessor<ITimer> sequenceCheckTimerFactory)
Parameters
Type | Name | Description |
---|---|---|
IEventSiteRegistry | siteRegistry | |
ServiceAccessor<ITimer> | sequenceCheckTimerFactory |
Properties
EventTimeout
Gets or sets a value indicating how long this EventMessageValidator should wait before considering an event as missing.
Declaration
public virtual TimeSpan EventTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Methods
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
OnEventMissed(EventMissedEventArgs)
Raises the EventMissed event.
Declaration
protected virtual void OnEventMissed(EventMissedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
EventMissedEventArgs | args | The EventMissedEventArgs instance containing the event data. |
Validate(EventMessage, Boolean)
Validates a received message and verifies that an event should be raised for it.
Declaration
public virtual bool Validate(EventMessage message, bool validateMessageIntegrity)
Parameters
Type | Name | Description |
---|---|---|
EventMessage | message | The message that should be validated. |
System.Boolean | validateMessageIntegrity | if set to |
Returns
Type | Description |
---|---|
System.Boolean |
|
Remarks
Calling this method will also trigger a message sequence validation.
Events
MessageMissed
Occurs if the IEventMessageValidator discovers that an event message has been not been received.
Declaration
public event EventHandler<EventMissedEventArgs> MessageMissed
Event Type
Type | Description |
---|---|
System.EventHandler<EventMissedEventArgs> |
Implements
System.IDisposable