Class HelpMessageHandler
A help message handler.
Inheritance
System.Object
HelpMessageHandler
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 HelpMessageHandler : MessageHandlerBase<HelpMessage, HelpResponseMessage>, ILoggable, IMessageHandler<HelpMessage>, IMessageHandler, IDisposable
Constructors
| Improve this Doc View SourceHelpMessageHandler(ICommandRegistry)
Initializes a new instance of the HelpMessageHandler class.
Declaration
public HelpMessageHandler(ICommandRegistry commandRegistry)
Parameters
Type | Name | Description |
---|---|---|
ICommandRegistry | commandRegistry | The command registry. |
Methods
| Improve this Doc View SourceProcessAsync(HelpMessage, IMessagingContext, CancellationToken)
Processes the provided message asynchronously and returns a response promise.
Declaration
public override Task<HelpResponseMessage> ProcessAsync(HelpMessage message, IMessagingContext context, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
HelpMessage | 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<HelpResponseMessage> | The response promise. |
Overrides
Kephas.Messaging.MessageHandlerBase<Kephas.Application.Console.Endpoints.HelpMessage, Kephas.Application.Console.Endpoints.HelpResponseMessage>.ProcessAsync(Kephas.Application.Console.Endpoints.HelpMessage, Kephas.Messaging.IMessagingContext, System.Threading.CancellationToken)
Implements
System.IDisposable