MessageBusBaseRegisterSubscriberTParameter, TReturn(String, SubscriberTParameter, TReturn, MessageBusSubscriberOptionsTParameter, TReturn) Method
Register a subscriber with parameter and return value with the message name specified.
Namespace: SecretNest.MessageBusAssembly: SecretNest.MessageBus.DirectRelease (in SecretNest.MessageBus.DirectRelease.dll) Version: 1.0.0
public abstract SubscriberTicket<TParameter, TReturn, Subscriber<TParameter, TReturn>> RegisterSubscriber<TParameter, TReturn>(
string messageName,
Subscriber<TParameter, TReturn> handler,
MessageBusSubscriberOptions<TParameter, TReturn>? options = null
)
Public MustOverride Function RegisterSubscriber(Of TParameter, TReturn) (
messageName As String,
handler As Subscriber(Of TParameter, TReturn),
Optional options As MessageBusSubscriberOptions(Of TParameter, TReturn) = Nothing
) As SubscriberTicket(Of TParameter, TReturn, Subscriber(Of TParameter, TReturn))
- messageName String
- The message name to be subscribed.
- handler SubscriberTParameter, TReturn
- The handler of the delegate with a parameter and return.
- options MessageBusSubscriberOptionsTParameter, TReturn (Optional)
- The instance of subscriber options. Default is .
- TParameter
- The type of the parameter.
- TReturn
- The type of the return value.
SubscriberTicketTParameter,
TReturn,
SubscriberTParameter,
TReturnSubscriber ticket.