当前位置: 首页>>代码示例>>C#>>正文


C# IceInternal.Direct.getServant方法代码示例

本文整理汇总了C#中IceInternal.Direct.getServant方法的典型用法代码示例。如果您正苦于以下问题:C# IceInternal.Direct.getServant方法的具体用法?C# IceInternal.Direct.getServant怎么用?C# IceInternal.Direct.getServant使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IceInternal.Direct的用法示例。


在下文中一共展示了IceInternal.Direct.getServant方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: signCSR

 public byte[] signCSR(string name, string surname, byte[] csrFile, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "signCSR", Ice.OperationMode.Normal, context__);
     byte[] result__ = null;
     Ice.UserException userException__ = null;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         CertSigner servant__ = null;
         try
         {
             servant__ = (CertSigner)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         try
         {
             result__ = servant__.signCSR(name, surname, csrFile, current__);
             return Ice.DispatchStatus.DispatchOK;
         }
         catch(Ice.UserException ex__)
         {
             userException__ = ex__;
             return Ice.DispatchStatus.DispatchUserException;
         }
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
             if(status__ == Ice.DispatchStatus.DispatchUserException)
             {
                 throw userException__;
             }
             _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
         }
         finally
         {
             direct__.destroy();
         }
     }
     catch(SR.DataTooLong)
     {
         throw;
     }
     catch(SR.IncorrectCSRFile)
     {
         throw;
     }
     catch(Ice.SystemException)
     {
         throw;
     }
     catch(_System.Exception ex__)
     {
         IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
     }
     return result__;
 }
开发者ID:Netoperek,项目名称:ClienBankIce,代码行数:64,代码来源:CertSigner.cs

示例2: shutdown

 public void shutdown(_System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "shutdown", Ice.OperationMode.Normal, context__);
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         BaseToBot servant__ = null;
         try
         {
             servant__ = (BaseToBot)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         servant__.shutdown(current__);
         return Ice.DispatchStatus.DispatchOK;
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
             _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
         }
         finally
         {
             direct__.destroy();
         }
     }
     catch(Ice.SystemException)
     {
         throw;
     }
     catch(_System.Exception ex__)
     {
         IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
     }
 }
开发者ID:intel-cornellcup,项目名称:r2bot,代码行数:41,代码来源:R2Comm.cs

示例3: tick

 public void tick(string mktDataId, long year, long month, long day, long hours, long minutes, long seconds, long milliseconds, double price, long volume, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "tick", Ice.OperationMode.Idempotent, context__);
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         MidaxIce servant__ = null;
         try
         {
             servant__ = (MidaxIce)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         servant__.tick(mktDataId, year, month, day, hours, minutes, seconds, milliseconds, price, volume, current__);
         return Ice.DispatchStatus.DispatchOK;
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
             _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
         }
         finally
         {
             direct__.destroy();
         }
     }
     catch(Ice.SystemException)
     {
         throw;
     }
     catch(_System.Exception ex__)
     {
         IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
     }
 }
开发者ID:JBetser,项目名称:MiDax,代码行数:41,代码来源:midax.cs

示例4: ice_id

        public virtual string ice_id(Dictionary<string, string> context__, InvocationObserver obsv__)
        {
            Current current__ = new Current();
            initCurrent__(ref current__, ObjectPrxHelperBase.__ice_id_name, OperationMode.Nonmutating, context__);

            string result__ = null;
            IceInternal.Direct.RunDelegate run__ = delegate(Object servant__)
            {
                result__ = servant__.ice_id(current__);
                return Ice.DispatchStatus.DispatchOK;
            };

            IceInternal.Direct direct__ = null;
            try
            {
                direct__ = new IceInternal.Direct(current__, run__);
            }
            catch(System.Exception ex__)
            {
                IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
            }

            try
            {
                DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
                Debug.Assert(status__ == DispatchStatus.DispatchOK);
                return result__;
            }
            finally
            {
                try
                {
                    direct__.destroy();
                }
                catch(System.Exception ex__)
                {
                    IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
                }
            }
        }
开发者ID:Radulfr,项目名称:zeroc-ice,代码行数:40,代码来源:Proxy.cs

示例5: removeAccount

 public void removeAccount(string accountID, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "removeAccount", Ice.OperationMode.Normal, context__);
     Ice.UserException userException__ = null;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         BankManager servant__ = null;
         try
         {
             servant__ = (BankManager)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         try
         {
             servant__.removeAccount(accountID, current__);
             return Ice.DispatchStatus.DispatchOK;
         }
         catch(Ice.UserException ex__)
         {
             userException__ = ex__;
             return Ice.DispatchStatus.DispatchUserException;
         }
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
             if(status__ == Ice.DispatchStatus.DispatchUserException)
             {
                 throw userException__;
             }
             _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
         }
         finally
         {
             direct__.destroy();
         }
     }
     catch(Bank.IncorrectData)
     {
         throw;
     }
     catch(Bank.NoSuchAccount)
     {
         throw;
     }
     catch(Ice.SystemException)
     {
         throw;
     }
     catch(_System.Exception ex__)
     {
         IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
     }
 }
开发者ID:Netoperek,项目名称:ClienBankIce,代码行数:62,代码来源:Bank.cs

示例6: calculateLoan

 public void calculateLoan(int amount, Bank.currency curr, int period, out int totalCost, out float interestRate, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "calculateLoan", Ice.OperationMode.Normal, context__);
     int totalCostHolder__ = 0;
     float interestRateHolder__ = 0.0f;
     Ice.UserException userException__ = null;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         PremiumAccount servant__ = null;
         try
         {
             servant__ = (PremiumAccount)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         try
         {
             servant__.calculateLoan(amount, curr, period, out totalCostHolder__, out interestRateHolder__, current__);
             return Ice.DispatchStatus.DispatchOK;
         }
         catch(Ice.UserException ex__)
         {
             userException__ = ex__;
             return Ice.DispatchStatus.DispatchUserException;
         }
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
             if(status__ == Ice.DispatchStatus.DispatchUserException)
             {
                 throw userException__;
             }
             _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
         }
         finally
         {
             direct__.destroy();
         }
     }
     catch(Bank.IncorrectData)
     {
         throw;
     }
     catch(Ice.SystemException)
     {
         throw;
     }
     catch(_System.Exception ex__)
     {
         IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
     }
     totalCost = totalCostHolder__;
     interestRate = interestRateHolder__;
 }
开发者ID:Netoperek,项目名称:ClienBankIce,代码行数:62,代码来源:Bank.cs

示例7: Send

 public NProgDistributed.TheIce.MessageDto Send(NProgDistributed.TheIce.MessageDto message, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "Send", Ice.OperationMode.Normal, context__);
     NProgDistributed.TheIce.MessageDto result__ = null;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         IMessageService servant__ = null;
         try
         {
             servant__ = (IMessageService)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         result__ = servant__.Send(message, current__);
         return Ice.DispatchStatus.DispatchOK;
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
             _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
         }
         finally
         {
             direct__.destroy();
         }
     }
     catch(Ice.SystemException)
     {
         throw;
     }
     catch(_System.Exception ex__)
     {
         IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
     }
     return result__;
 }
开发者ID:yonglehou,项目名称:DistributedCommunicationDotNet,代码行数:43,代码来源:message.cs


注:本文中的IceInternal.Direct.getServant方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。