Table of Contents

Class DispatchMessageExtensions

Namespace
Excalibur.Dispatch.Messaging
Assembly
Excalibur.Dispatch.dll

Provides extension methods for IDispatchMessage instances to determine message types and characteristics.

public static class DispatchMessageExtensions
Inheritance
DispatchMessageExtensions
Inherited Members

Methods

ExpectsReturnValue(IDispatchMessage)

Determines whether the given message is an IDispatchAction<TResult> and expects a return value.

[RequiresUnreferencedCode("Uses reflection to check for generic action interfaces")]
public static bool ExpectsReturnValue(this IDispatchMessage message)

Parameters

message IDispatchMessage

The message to check.

Returns

bool

True if the message implements IDispatchAction<TResult>; otherwise, false.

IsAction(IDispatchMessage)

Determines whether the message represents an action command.

[RequiresUnreferencedCode("Uses reflection to check for generic action interfaces")]
public static bool IsAction(this IDispatchMessage message)

Parameters

message IDispatchMessage

Message instance.

Returns

bool

true if the message is an action.

IsDocument(IDispatchMessage)

Determines whether the message represents a document.

public static bool IsDocument(this IDispatchMessage message)

Parameters

message IDispatchMessage

Message instance.

Returns

bool

true if the message is a document.

IsEvent(IDispatchMessage)

Determines whether the message represents an event.

public static bool IsEvent(this IDispatchMessage message)

Parameters

message IDispatchMessage

Message instance.

Returns

bool

true if the message is an event.