public IDisposable Subscribe(IRillConsumer <T> consumer) => _src.Subscribe(new CatchingConsumer(consumer, _handler));
public CatchingConsumer(IRillConsumer <T> consumer, Action <TException> handler) { _consumer = consumer; _handler = handler; }
public MappingConsumer(IRillConsumer <TTo> consumer, Func <TFrom, TTo> map) { _consumer = consumer; _map = map; }
public IDisposable Subscribe(IRillConsumer <TTo> consumer) => _src.Subscribe(new MappingConsumer(consumer, _map));
public OfTypeConsumer(IRillConsumer <Event <TResult> > consumer) => _consumer = consumer;
public FilteringConsumer(IRillConsumer <Event <T> > consumer, Func <Event <T>, bool> predicate) { _consumer = consumer; _predicate = predicate; }
public IDisposable Subscribe(IRillConsumer <Event <T> > consumer) => _src.Subscribe(new FilteringConsumer(consumer, _predicate));