コード例 #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;
 }