Class PingMessageHandler
Message handler for the PingMessage.
Inheritance
System.Object
PingMessageHandler
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.Messaging.Endpoints
Assembly: Kephas.Messaging.dll
Syntax
public class PingMessageHandler : MessageHandlerBase<PingMessage, PingBackMessage>, ILoggable, IMessageHandler<PingMessage>, IMessageHandler, IDisposable
Methods
| Improve this Doc View SourceProcessAsync(PingMessage, IMessagingContext, CancellationToken)
Processes the provided message asynchronously and returns a response promise.
Declaration
public override Task<PingBackMessage> ProcessAsync(PingMessage message, IMessagingContext context, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
PingMessage | 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<PingBackMessage> | The response promise. |
Overrides
Kephas.Messaging.MessageHandlerBase<Kephas.Messaging.Messages.PingMessage, Kephas.Messaging.Messages.PingBackMessage>.ProcessAsync(Kephas.Messaging.Messages.PingMessage, Kephas.Messaging.IMessagingContext, System.Threading.CancellationToken)
Implements
System.IDisposable