Show / Hide Table of Contents

Class QuitMessageHandler

A quit message handler.

Inheritance
System.Object
Loggable
MessageHandlerBase<QuitMessage, IMessage>
QuitMessageHandler
Implements
ILoggable
IMessageHandler<QuitMessage>
IMessageHandler
System.IDisposable
Inherited Members
MessageHandlerBase<QuitMessage, IMessage>.ProcessAsync(QuitMessage, IMessagingContext, CancellationToken)
MessageHandlerBase<QuitMessage, IMessage>.IMessageHandler<QuitMessage>.ProcessAsync(QuitMessage, IMessagingContext, CancellationToken)
MessageHandlerBase<QuitMessage, IMessage>.IMessageHandler.ProcessAsync(IMessage, IMessagingContext, CancellationToken)
MessageHandlerBase<QuitMessage, IMessage>.Dispose()
MessageHandlerBase<QuitMessage, IMessage>.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.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 Source

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

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

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