示例#1
0
        public override Func <Tuple <object, Action> > GetCompositionOperation()
        {
            var globalA = new Web.GlobalA();
            var globalB = new Web.GlobalB();

            return(() =>
            {
                var tc = new Web.TailC();
                var tb = new Web.TailB(tc);
                var ta = new Web.TailA(tb);
                var a = new Web.A(globalA);
                var b = new Web.B(globalB);
                var transient = new Web.Transient();
                var w = new Web.Wide(a, a, b, transient);
                var l = new Web.Long(ta);
                var r = new Web.OperationRoot(w, l);
                return Tuple.Create <object, Action>(r, () => { ta.Dispose(); tb.Dispose(); tc.Dispose(); });
            });
        }
示例#2
0
 public override Func<Tuple<object, Action>> GetCompositionOperation()
 {
     var globalA = new Web.GlobalA();
     var globalB = new Web.GlobalB();
     return () =>
     {
         var tc = new Web.TailC();
         var tb = new Web.TailB(tc);
         var ta = new Web.TailA(tb);
         var a = new Web.A(globalA);
         var b = new Web.B(globalB);
         var transient = new Web.Transient();
         var w = new Web.Wide(a, a, b, transient);
         var l = new Web.Long(ta);
         var r = new Web.OperationRoot(w, l);
         return Tuple.Create<object, Action>(r, () => { ta.Dispose(); tb.Dispose(); tc.Dispose(); });
     };
 }
示例#3
0
 public OperationRoot(Wide w, Long l) { _w = w; _l = l; }
示例#4
0
 public OperationRoot(Wide w, Long l)
 {
     _w = w; _l = l;
 }