Show / Hide Table of Contents

Class StopAppHandler

A stop application message handler.

Inheritance
System.Object
Loggable
MessageHandlerBase<StopAppMessage, StopAppResponseMessage>
StopAppHandler
Implements
ILoggable
IMessageHandler<StopAppMessage>
IMessageHandler
System.IDisposable
Inherited Members
MessageHandlerBase<StopAppMessage, StopAppResponseMessage>.ProcessAsync(StopAppMessage, IMessagingContext, CancellationToken)
MessageHandlerBase<StopAppMessage, StopAppResponseMessage>.IMessageHandler<StopAppMessage>.ProcessAsync(StopAppMessage, IMessagingContext, CancellationToken)
MessageHandlerBase<StopAppMessage, StopAppResponseMessage>.IMessageHandler.ProcessAsync(IMessage, IMessagingContext, CancellationToken)
MessageHandlerBase<StopAppMessage, StopAppResponseMessage>.Dispose()
MessageHandlerBase<StopAppMessage, StopAppResponseMessage>.Dispose(Boolean)
Loggable.Logger
Loggable.GetLogger()
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 Source

StopAppHandler(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 Source

ProcessAsync(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

ILoggable
IMessageHandler<TMessage>
IMessageHandler
System.IDisposable

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX