示例#1
0
文件: TestI.cs 项目: nonmore/ice
 public override void opRequiredException(Ice.Optional <int> a, Ice.Optional <string> b,
                                          Ice.Optional <Test.OneOptional> o, Ice.Current current)
 {
     Test.RequiredException e = new Test.RequiredException();
     e.a = a;
     e.b = b;
     e.o = o;
     if (b.HasValue)
     {
         e.ss = b.Value;
     }
     if (o.HasValue)
     {
         e.o2 = o.Value;
     }
     throw e;
 }
示例#2
0
文件: TestI.cs 项目: pedia/zeroc-ice
 public override void opRequiredException(Ice.Optional<int> a, Ice.Optional<string> b,
                                          Ice.Optional<Test.OneOptional> o, Ice.Current current)
 {
     Test.RequiredException e = new Test.RequiredException();
     e.a = a;
     e.b = b;
     e.o = o;
     if(b.HasValue)
     {
         e.ss = b.Value;
     }
     if(o.HasValue)
     {
         e.o2 = o.Value;
     }
     throw e;
 }
示例#3
0
 public override void opRequiredException_async(Test.AMD_Initial_opRequiredException cb, Ice.Optional<int> a,
                                                Ice.Optional<string> b, Ice.Optional<Test.OneOptional> o,
                                                Ice.Current current)
 {
     Test.RequiredException e = new Test.RequiredException();
     e.a = a;
     e.b = b;
     e.o = o;
     if(b.HasValue)
     {
         e.ss = b.Value;
     }
     if(o.HasValue)
     {
         e.o2 = o.Value;
     }
     cb.ice_exception(e);
 }
示例#4
0
 public override void opRequiredException_async(Test.AMD_Initial_opRequiredException cb, Ice.Optional <int> a,
                                                Ice.Optional <string> b, Ice.Optional <Test.OneOptional> o,
                                                Ice.Current current)
 {
     Test.RequiredException e = new Test.RequiredException();
     e.a = a;
     e.b = b;
     e.o = o;
     if (b.HasValue)
     {
         e.ss = b.Value;
     }
     if (o.HasValue)
     {
         e.o2 = o.Value;
     }
     cb.ice_exception(e);
 }
示例#5
0
                opRequiredExceptionAsync(Ice.Optional <int> a,
                                         Ice.Optional <string> b,
                                         Ice.Optional <Test.OneOptional> o,
                                         Ice.Current c)
                {
                    var e = new Test.RequiredException();

                    e.a = a;
                    e.b = b;
                    e.o = o;
                    if (b.HasValue)
                    {
                        e.ss = b.Value;
                    }
                    if (o.HasValue)
                    {
                        e.o2 = o.Value;
                    }
                    throw e;
                }
示例#6
0
文件: TestI.cs 项目: yzun/ice
        public void opRequiredException(int?a,
                                        string?b,
                                        Test.OneOptional?o,
                                        Current current)
        {
            Test.RequiredException e = new Test.RequiredException();
            e.a = a;
            e.b = b;
            e.o = o;
            if (b != null)
            {
                e.ss = b;
            }

            if (o != null)
            {
                e.o2 = o;
            }
            throw e;
        }
示例#7
0
文件: TestAMDI.cs 项目: xingx001/ice
                opRequiredExceptionAsync(int?a,
                                         string?b,
                                         Test.OneOptional?o,
                                         Current c)
                {
                    var e = new Test.RequiredException();

                    e.a = a;
                    e.b = b;
                    e.o = o;
                    if (b != null)
                    {
                        e.ss = b;
                    }
                    if (o != null)
                    {
                        e.o2 = o;
                    }

                    throw e;
                }