예제 #1
0
        public IBigEitherInletPipe <TMessage, TTieBreaker> Build()
        {
            var promisedPipe = new Promised <IPipe>();

            var inlets = Enumerable.Repeat <Func <SimpleInlet <TMessage> > >(() => new SimpleInlet <TMessage>(promisedPipe), Size).Select(f => f()).ToList();
            var outlet = new SimpleOutlet <TMessage>(promisedPipe);

            return(promisedPipe.Fulfill(new BigEitherInletPipe <TMessage, TTieBreaker>(inlets, outlet, TieBreaker)));
        }
예제 #2
0
 public void SetUp()
 {
     pipe         = PipeBuilder.New.BasicPipe <int>().Build();
     inlet        = pipe.Inlet;
     simpleOutlet = (SimpleOutlet <int>)pipe.Outlet;
 }
예제 #3
0
 public void SetUp()
 {
     pipe = PipeBuilder.New.BasicPipe<int>().Build();
     inlet = pipe.Inlet;
     simpleOutlet = (SimpleOutlet<int>) pipe.Outlet;
 }