Register(IInbox, MessageType<T>, TArg, Func<T, TArg, IInboxHandlerContext, CancellationToken, ValueTask>)
staticextension
public static IInbox Register<T, TArg>(this IInbox inbox, MessageType<T> messageType, TArg argument, Func<T, TArg, IInboxHandlerContext, CancellationToken, ValueTask> handler)Registers an asynchronous subject handler with an explicit argument.
Parameters
inboxIInbox- The inbox.
messageTypeMessageType<T>- The subject and serializer binding.
argumentTArg- The argument stored with the handler.
handlerFunc<T, TArg, IInboxHandlerContext, CancellationToken, ValueTask>- The body, argument, context, and attempt-token delegate.
Returns
The inbox.
