Class QuitMessageHandler
A quit message handler.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Application.Console.Endpoints
Assembly: Kephas.Application.Console.dll
Syntax
public class QuitMessageHandler : MessageHandlerBase<QuitMessage, IMessage>, ILoggable, IMessageHandler<QuitMessage>, IMessageHandler, IDisposable
Constructors
| Improve this Doc View SourceQuitMessageHandler(IEventHub)
Initializes a new instance of the QuitMessageHandler class.
Declaration
public QuitMessageHandler(IEventHub eventHub)
Parameters
Type | Name | Description |
---|---|---|
IEventHub | eventHub | The event hub. |
Methods
| Improve this Doc View SourceProcessAsync(QuitMessage, IMessagingContext, CancellationToken)
Processes the provided message asynchronously and returns a response promise.
Declaration
public override Task<IMessage> ProcessAsync(QuitMessage message, IMessagingContext context, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
QuitMessage | 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. |
Overrides
Kephas.Messaging.MessageHandlerBase<Kephas.Application.Console.Endpoints.QuitMessage, Kephas.Messaging.IMessage>.ProcessAsync(Kephas.Application.Console.Endpoints.QuitMessage, Kephas.Messaging.IMessagingContext, System.Threading.CancellationToken)
Implements
System.IDisposable