Class StopAppHandler
A stop application message handler.
Inheritance
System.Object
StopAppHandler
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.Orchestration.Endpoints
Assembly: Kephas.Orchestration.dll
Syntax
[MessageHandler(MessageTypeMatching.TypeOrHierarchy)]
public class StopAppHandler : MessageHandlerBase<StopAppMessage, StopAppResponseMessage>, ILoggable, IMessageHandler<StopAppMessage>, IMessageHandler, IDisposable
Constructors
| Improve this Doc View SourceStopAppHandler(IAppRuntime, IEventHub, IMessageBroker)
Initializes a new instance of the StopAppHandler class.
Declaration
public StopAppHandler(IAppRuntime appRuntime, IEventHub eventHub, IMessageBroker messageBroker)
Parameters
Type | Name | Description |
---|---|---|
IAppRuntime | appRuntime | The application runtime. |
IEventHub | eventHub | The event hub. |
IMessageBroker | messageBroker | The message broker. |
Methods
| Improve this Doc View SourceProcessAsync(StopAppMessage, IMessagingContext, CancellationToken)
Processes the provided message asynchronously and returns a response promise.
Declaration
public override Task<StopAppResponseMessage> ProcessAsync(StopAppMessage message, IMessagingContext context, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
StopAppMessage | 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<StopAppResponseMessage> | The response promise. |
Overrides
Kephas.Messaging.MessageHandlerBase<Kephas.Orchestration.Endpoints.StopAppMessage, Kephas.Orchestration.Endpoints.StopAppResponseMessage>.ProcessAsync(Kephas.Orchestration.Endpoints.StopAppMessage, Kephas.Messaging.IMessagingContext, System.Threading.CancellationToken)
Implements
System.IDisposable