Show / Hide Table of Contents

Class EventExtensions

Useful extension methods for IEvent.

Inheritance
Object
EventExtensions
Inherited Members
System.Object.ToString()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
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 event.

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 event.

Exceptions
System.InvalidOperationException

Throws a System.InvalidOperationException if the event occurrs in the future.

Back to top Generated by DocFX