public IDisposable Subscribe(IAsyncMessageHandler <TMessage> handler, AsyncMessageHandlerFilter <TMessage>[] filters) { return(core.Subscribe(handlerFactory.CreateAsyncMessageHandler(handler, filters))); }
public IDisposable Subscribe(TKey key, IAsyncMessageHandler <TMessage> handler, params AsyncMessageHandlerFilter <TMessage>[] filters) { return(core.Subscribe(key, handlerFactory.CreateAsyncMessageHandler(handler, filters))); }
public ValueTask <IDisposable> SubscribeAsync(IAsyncMessageHandler <TMessage> handler, AsyncMessageHandlerFilter <TMessage>[] filters, CancellationToken cancellationToken) { handler = handlerFactory.CreateAsyncMessageHandler(handler, filters); return(core.SubscribeAsync(handler, cancellationToken)); }