コード例 #1
0
 public IDisposable Subscribe(IAsyncMessageHandler <TMessage> handler, AsyncMessageHandlerFilter <TMessage>[] filters)
 {
     return(core.Subscribe(handlerFactory.CreateAsyncMessageHandler(handler, filters)));
 }
コード例 #2
0
 public IDisposable Subscribe(TKey key, IAsyncMessageHandler <TMessage> handler, params AsyncMessageHandlerFilter <TMessage>[] filters)
 {
     return(core.Subscribe(key, handlerFactory.CreateAsyncMessageHandler(handler, filters)));
 }
コード例 #3
0
 public ValueTask <IDisposable> SubscribeAsync(IAsyncMessageHandler <TMessage> handler, AsyncMessageHandlerFilter <TMessage>[] filters, CancellationToken cancellationToken)
 {
     handler = handlerFactory.CreateAsyncMessageHandler(handler, filters);
     return(core.SubscribeAsync(handler, cancellationToken));
 }