Class EventExtensions
Useful extension methods for IEvent.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: IRM.Messaging
Assembly: IRM.dll
Syntax
public static class EventExtensions
Methods
AddCallContextMetadata(Event, ICallContext)
Sets unset Event properties that can be derived from ICallContext.
Declaration
public static IEvent AddCallContextMetadata(this Event event, ICallContext callContext)
Parameters
|
Event
event
The Event to set properties for. |
|
ICallContext
callContext
The ICallContext to get property values from. |
Returns
|
IEvent
The |
CheckThatEventHasOccurred(IEvent)
Checks that the IEvent has occurred.
Declaration
public static IEvent CheckThatEventHasOccurred(this IEvent event)
Parameters
|
IEvent
event
The IEvent to check. |
Returns
|
IEvent
The |
Exceptions
|
System.InvalidOperationException
Throws a System.InvalidOperationException if the event occurrs in the future. |