Share via


IMessageHandler<TMessage,TResult> Interface

Definition

Caution

Use [MessageHandler] attribute on methods in a partial class deriving from Executor. This interface will be removed in a future version.

A message handler interface for handling messages of type TMessage and returning a result.

[System.Obsolete("Use [MessageHandler] attribute on methods in a partial class deriving from Executor. This interface will be removed in a future version.")]
public interface IMessageHandler<TMessage,TResult>
[<System.Obsolete("Use [MessageHandler] attribute on methods in a partial class deriving from Executor. This interface will be removed in a future version.")>]
type IMessageHandler<'Message, 'Result> = interface
Public Interface IMessageHandler(Of TMessage, TResult)

Type Parameters

TMessage

The type of message to handle.

TResult

The type of result returned after handling the message.

Derived
Attributes

Remarks

This interface is obsolete. Use the MessageHandlerAttribute on methods in a partial class deriving from Executor instead.

Methods

Name Description
HandleAsync(TMessage, IWorkflowContext, CancellationToken)

Handles the incoming message asynchronously.

Applies to