public Streamer() { RequestStrategy = new InFlightStrategy(this); var routees = new[] { Routee.FromActorRef(Context.ActorOf(Props.Create <Worker>().WithDispatcher(Context.Props.Dispatcher))), Routee.FromActorRef(Context.ActorOf(Props.Create <Worker>().WithDispatcher(Context.Props.Dispatcher))), Routee.FromActorRef(Context.ActorOf(Props.Create <Worker>().WithDispatcher(Context.Props.Dispatcher))) }; _router = new Router(new RoundRobinRoutingLogic(), routees); }
public Streamer() { RequestStrategy = new InFlightStrategy(this); var routees = new[] { Routee.FromActorRef(Context.ActorOf(Props.Create<Worker>().WithDispatcher(Context.Props.Dispatcher))), Routee.FromActorRef(Context.ActorOf(Props.Create<Worker>().WithDispatcher(Context.Props.Dispatcher))), Routee.FromActorRef(Context.ActorOf(Props.Create<Worker>().WithDispatcher(Context.Props.Dispatcher))) }; _router = new Router(new RoundRobinRoutingLogic(), routees); }