Interface IMessageHandler
Application service for handling messages.
Inherited Members
System.IDisposable.Dispose()
Namespace: Kephas.Messaging
Assembly: Kephas.Messaging.dll
Syntax
public interface IMessageHandler : IDisposable
Methods
| Improve this Doc View SourceProcessAsync(IMessage, IMessagingContext, CancellationToken)
Processes the provided message asynchronously and returns a response promise.
Declaration
Task<IMessage> ProcessAsync(IMessage message, IMessagingContext context, CancellationToken token)
Parameters
| Type | Name | Description |
|---|---|---|
| IMessage | message | The message to be handled. |
| IMessagingContext | context | The processing context. |
| System.Threading.CancellationToken | token | The cancellation token. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IMessage> | The response promise. |