Interface IMessageProcessor
Application service for processing messages.
Namespace: Kephas.Messaging
Assembly: Kephas.Messaging.dll
Syntax
[SingletonAppServiceContract]
public interface IMessageProcessorRemarks
The message processor is defined as a shared service.
Methods
| Improve this Doc View SourceProcessAsync(IMessage, IMessagingContext, CancellationToken)
Processes the specified message asynchronously.
Declaration
Task<IMessage> ProcessAsync(IMessage message, IMessagingContext context = null, CancellationToken token = default(CancellationToken))Parameters
| Type | Name | Description | 
|---|---|---|
| IMessage | message | The message. | 
| IMessagingContext | context | Context for the message processing. | 
| System.Threading.CancellationToken | token | The cancellation token. | 
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<IMessage> | The response promise. |