Beispiel #1
0
 public ForkListener(RouteCollection <TProducer> routes, IForkSubscriber subscriber, IForkHandlerMiddleware middleware)
 {
     _routes        = routes.OfType <InputOutputRoute>().Where(e => e.ToProducer == typeof(TProducer)).ToArray();
     _middleware    = middleware;
     _subscriber    = subscriber;
     _subscriptions = new List <IDisposable>();
 }
Beispiel #2
0
 public ForkListener(RouteCollection routes, IForkSubscriber subscriber, IForkHandlerMiddleware middleware)
     : this(routes.Filter <TProducer>(), subscriber, middleware)
 {
 }