Skip to content

InboxExtensions.Register(IInbox, MessageType<T>, TArg, Action<T, TArg, IInboxHandlerContext>)

Register(IInbox, MessageType<T>, TArg, Action<T, TArg, IInboxHandlerContext>)

staticextension
View source
public static IInbox Register<T, TArg>(this IInbox inbox, MessageType<T> messageType, TArg argument, Action<T, TArg, IInboxHandlerContext> handler)
Registers a synchronous subject handler with an explicit argument.

Parameters

inboxIInbox
The inbox.
messageTypeMessageType<T>
The subject and serializer binding.
argumentTArg
The argument stored with the handler.
handlerAction<T, TArg, IInboxHandlerContext>
The synchronous body, argument, and context delegate.

Returns

The inbox.