Skip to content

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

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

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

Parameters

inboxIInbox
The inbox.
messageTypeMessageType<T>
The subject and serializer binding.
handlerAction<T, IInboxHandlerContext>
The synchronous body and context delegate.

Returns

The inbox.