예제 #1
0
 public override void getAll(out Test.B b1, out Test.B b2, out Test.C c, out Test.D d, Ice.Current current)
 {
     b1 = _b1;
     b2 = _b2;
     c  = _c;
     d  = _d;
 }
예제 #2
0
파일: ThrowerI.cs 프로젝트: ycbxklk/ice
 public override void throwAorDasAorD(int a, Ice.Current current)
 {
     if (a > 0)
     {
         var ex = new Test.A();
         ex.aMem = a;
         throw ex;
     }
     else
     {
         var ex = new Test.D();
         ex.dMem = a;
         throw ex;
     }
 }
예제 #3
0
파일: InitialI.cs 프로젝트: bailudata/ice
            public InitialI(ObjectAdapter adapter)
            {
                _adapter = adapter;
                _b1      = new Test.B();
                _b2      = new Test.B();
                _c       = new Test.C();
                _d       = new Test.D();

                _b1.theA = _b2;  // Cyclic reference to another B
                _b1.theB = _b1;  // Self reference.
                _b1.theC = null; // Null reference.

                _b2.theA = _b2;  // Self reference, using base.
                _b2.theB = _b1;  // Cyclic reference to another B
                _b2.theC = _c;   // Cyclic reference to a C.

                _c.theB = _b2;   // Cyclic reference to a B.

                _d.theA = _b1;   // Reference to a B.
                _d.theB = _b2;   // Reference to a B.
                _d.theC = null;  // Reference to a C.
            }