• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IceInternal.Direct类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: Join

 public Chat.RoomAccess Join(string nick, string topic, Ice.Identity listenerIdentity, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "Join", Ice.OperationMode.Normal, context__);
     Chat.RoomAccess result__ = new Chat.RoomAccess();
     Ice.UserException userException__ = null;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         Lobby servant__ = null;
         try
         {
             servant__ = (Lobby)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         try
         {
             result__ = servant__.Join(nick, topic, listenerIdentity, 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__.servant().collocDispatch__(direct__);
             if(status__ == Ice.DispatchStatus.DispatchUserException)
             {
                 throw userException__;
             }
             _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
         }
         finally
         {
             direct__.destroy();
         }
     }
     catch(Chat.IChatException)
     {
         throw;
     }
     catch(Ice.SystemException)
     {
         throw;
     }
     catch(System.Exception ex__)
     {
         IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
     }
     return result__;
 }
开发者ID:spolnik,项目名称:Chat_Ice_ZeroC,代码行数:60,代码来源:Chat.cs


示例2: GetFoup

 public MCS.LocFoup GetFoup(int foupBarCode, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "GetFoup", Ice.OperationMode.Idempotent, context__);
     MCS.LocFoup result__ = new MCS.LocFoup();
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         MESLink servant__ = null;
         try
         {
             servant__ = (MESLink)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         result__ = servant__.GetFoup(foupBarCode, current__);
         return Ice.DispatchStatus.DispatchOK;
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.servant().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:tornadocean,项目名称:SyAutoH,代码行数:43,代码来源:iMesLink.cs


示例3: WriteData

 public int WriteData(MCS.GuiHub.GuiCommand Tag, string Val, int session, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "WriteData", Ice.OperationMode.Idempotent, context__);
     int result__ = 0;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         GuiDataHub servant__ = null;
         try
         {
             servant__ = (GuiDataHub)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         result__ = servant__.WriteData(Tag, Val, session, current__);
         return Ice.DispatchStatus.DispatchOK;
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.servant().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:JiangJunGG,项目名称:SyAutoH,代码行数:43,代码来源:iGuiHub.cs


示例4: toPort

 public double toPort(string id, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "toPort", Ice.OperationMode.Idempotent, context__);
     double result__ = 0.0;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         RepoApi servant__ = null;
         try
         {
             servant__ = (RepoApi)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         result__ = servant__.toPort(id, current__);
         return Ice.DispatchStatus.DispatchOK;
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.servant().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:nfrey,项目名称:qreal,代码行数:43,代码来源:repoclientice.cs


示例5: ice_ping

        public virtual void ice_ping(Dictionary<string, string> context__)
        {
            Current current__ = new Current();
            initCurrent__(ref current__, "ice_ping", OperationMode.Nonmutating, context__);

            IceInternal.Direct.RunDelegate run__ = delegate(Object servant__)
            {
                servant__.ice_ping(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__.servant().collocDispatch__(direct__);
                Debug.Assert(status__ == DispatchStatus.DispatchOK);
            }
            finally
            {
                try
                {
                    direct__.destroy();
                }
                catch(System.Exception ex__)
                {
                    IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
                }
            }
        }
开发者ID:bholl,项目名称:zeroc-ice,代码行数:38,代码来源:Proxy.cs


示例6: authenticate

 public int authenticate(string name, string pw, byte[][] certificates, string certhash, bool certstrong, out string newname, out string[] groups, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "authenticate", Ice.OperationMode.Idempotent, context__);
     string newnameHolder__ = null;
     string[] groupsHolder__ = null;
     int result__ = 0;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         ServerUpdatingAuthenticator servant__ = null;
         try
         {
             servant__ = (ServerUpdatingAuthenticator)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         result__ = servant__.authenticate(name, pw, certificates, certhash, certstrong, out newnameHolder__, out groupsHolder__, current__);
         return Ice.DispatchStatus.DispatchOK;
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.servant().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__);
     }
     newname = newnameHolder__;
     groups = groupsHolder__;
     return result__;
 }
开发者ID:nhede,项目名称:whisper_server,代码行数:47,代码来源:Murmur.cs


示例7: unregisterUser

 public int unregisterUser(int id, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "unregisterUser", Ice.OperationMode.Normal, context__);
     int result__ = 0;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         ServerUpdatingAuthenticator servant__ = null;
         try
         {
             servant__ = (ServerUpdatingAuthenticator)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         result__ = servant__.unregisterUser(id, current__);
         return Ice.DispatchStatus.DispatchOK;
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.servant().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:nhede,项目名称:whisper_server,代码行数:43,代码来源:Murmur.cs


示例8: getClientType

 public vsm.network.ClientType getClientType(_System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "getClientType", Ice.OperationMode.Normal, context__);
     vsm.network.ClientType result__ = vsm.network.ClientType.UNITY;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         VSClient servant__ = null;
         try
         {
             servant__ = (VSClient)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         result__ = servant__.getClientType(current__);
         return Ice.DispatchStatus.DispatchOK;
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.servant().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:Firemann,项目名称:veryseriousgame,代码行数:43,代码来源:network.cs


示例9: register

 public void register(vsm.network.VSClientPrx client, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "register", Ice.OperationMode.Normal, context__);
     Ice.UserException userException__ = null;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         VSServer servant__ = null;
         try
         {
             servant__ = (VSServer)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         try
         {
             servant__.register(client, 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__.servant().collocDispatch__(direct__);
             if(status__ == Ice.DispatchStatus.DispatchUserException)
             {
                 throw userException__;
             }
             _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
         }
         finally
         {
             direct__.destroy();
         }
     }
     catch(vsm.network.AlreadyConnectedException)
     {
         throw;
     }
     catch(Ice.SystemException)
     {
         throw;
     }
     catch(_System.Exception ex__)
     {
         IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
     }
 }
开发者ID:Firemann,项目名称:veryseriousgame,代码行数:58,代码来源:network.cs


示例10: slaveDisconnected

 public void slaveDisconnected(string id, IDHT.range[] newRanges, IDHT.nodeConf[] childRanges, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "slaveDisconnected", Ice.OperationMode.Normal, context__);
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         DHTNode servant__ = null;
         try
         {
             servant__ = (DHTNode)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         servant__.slaveDisconnected(id, newRanges, childRanges, current__);
         return Ice.DispatchStatus.DispatchOK;
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.servant().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:darekfilip,项目名称:IDHT,代码行数:41,代码来源:idht.cs


示例11: translate

 public void translate(vsm.VSVector3 translation, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "translate", Ice.OperationMode.Normal, context__);
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         VSTransform servant__ = null;
         try
         {
             servant__ = (VSTransform)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         servant__.translate(translation, current__);
         return Ice.DispatchStatus.DispatchOK;
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.servant().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:Firemann,项目名称:veryseriousgame,代码行数:41,代码来源:component.cs


示例12: 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


示例13: 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


示例14: Say

 public void Say(string message, long time, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "Say", Ice.OperationMode.Normal, context__);
     Ice.UserException userException__ = null;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         RoomV2 servant__ = null;
         try
         {
             servant__ = (RoomV2)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         try
         {
             servant__.Say(message, time, 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__.servant().collocDispatch__(direct__);
             if(status__ == Ice.DispatchStatus.DispatchUserException)
             {
                 throw userException__;
             }
             _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
         }
         finally
         {
             direct__.destroy();
         }
     }
     catch(Chat.IllegalChatSessionException)
     {
         throw;
     }
     catch(Ice.SystemException)
     {
         throw;
     }
     catch(System.Exception ex__)
     {
         IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
     }
 }
开发者ID:spolnik,项目名称:Chat_Ice_ZeroC,代码行数:58,代码来源:Chat.cs


示例15: SendBuffer2

 public void SendBuffer2(string aServiceName, string aBufferGuid, int aSendIndex, int aTotalBufferLength, int aCurrentBufferLength, byte[] aSeq, Ice.Context context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "SendBuffer2", Ice.OperationMode.Normal, context__);
     while(true)
     {
         IceInternal.Direct direct__ = new IceInternal.Direct(current__);
         object servant__ = direct__.servant();
         if(servant__ is BufferTransfer)
         {
             try
             {
                 ((InfoDTV.Multiplexer.Dynamic.Provider.BufferTransfer)servant__).SendBuffer2(aServiceName, aBufferGuid, aSendIndex, aTotalBufferLength, aCurrentBufferLength, aSeq, current__);
                 return;
             }
             catch(Ice.LocalException ex__)
             {
                 throw new IceInternal.LocalExceptionWrapper(ex__, false);
             }
             finally
             {
                 direct__.destroy();
             }
         }
         else
         {
             direct__.destroy();
             Ice.OperationNotExistException opEx__ = new Ice.OperationNotExistException();
             opEx__.id = current__.id;
             opEx__.facet = current__.facet;
             opEx__.operation = current__.operation;
             throw opEx__;
         }
     }
 }
开发者ID:vvhh2003,项目名称:InfoDTV,代码行数:35,代码来源:ICEBufferSender.cs


示例16: 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


示例17: contextAction

 public void contextAction(string action, Murmur.User usr, int session, int channelid, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "contextAction", Ice.OperationMode.Idempotent, context__);
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         ServerContextCallback servant__ = null;
         try
         {
             servant__ = (ServerContextCallback)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         servant__.contextAction(action, usr, session, channelid, current__);
         return Ice.DispatchStatus.DispatchOK;
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.servant().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:nhede,项目名称:whisper_server,代码行数:41,代码来源:Murmur.cs


示例18: countLogins

 public int countLogins(string hostname, string actionURL, string httpRealm, KeeICE.KPlib.loginSearchType lst, bool requireFullURLMatches, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "countLogins", Ice.OperationMode.Normal, context__);
     int result__ = 0;
     Ice.UserException userException__ = null;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         KP servant__ = null;
         try
         {
             servant__ = (KP)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         try
         {
             result__ = servant__.countLogins(hostname, actionURL, httpRealm, lst, requireFullURLMatches, 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__.servant().collocDispatch__(direct__);
             if(status__ == Ice.DispatchStatus.DispatchUserException)
             {
                 throw userException__;
             }
             _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
         }
         finally
         {
             direct__.destroy();
         }
     }
     catch(KeeICE.KPlib.KeeICEException)
     {
         throw;
     }
     catch(Ice.SystemException)
     {
         throw;
     }
     catch(System.Exception ex__)
     {
         IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
     }
     return result__;
 }
开发者ID:hathagat,项目名称:KeeFox,代码行数:60,代码来源:KeeICE.cs


示例19: getInfo

 public bool getInfo(int id, out _System.Collections.Generic.Dictionary<Murmur.UserInfo, string> info, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "getInfo", Ice.OperationMode.Idempotent, context__);
     _System.Collections.Generic.Dictionary<Murmur.UserInfo, string> infoHolder__ = null;
     bool result__ = false;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         ServerUpdatingAuthenticator servant__ = null;
         try
         {
             servant__ = (ServerUpdatingAuthenticator)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         result__ = servant__.getInfo(id, out infoHolder__, current__);
         return Ice.DispatchStatus.DispatchOK;
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.servant().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__);
     }
     info = infoHolder__;
     return result__;
 }
开发者ID:nhede,项目名称:whisper_server,代码行数:45,代码来源:Murmur.cs


示例20: findGroups

 public int findGroups(string name, string uuid, out KeeICE.KPlib.KPGroup[] groups, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "findGroups", Ice.OperationMode.Normal, context__);
     KeeICE.KPlib.KPGroup[] groupsHolder__ = null;
     int result__ = 0;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         KP servant__ = null;
         try
         {
             servant__ = (KP)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         result__ = servant__.findGroups(name, uuid, out groupsHolder__, current__);
         return Ice.DispatchStatus.DispatchOK;
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.servant().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__);
     }
     groups = groupsHolder__;
     return result__;
 }
开发者ID:hathagat,项目名称:KeeFox,代码行数:45,代码来源:KeeICE.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Icon类代码示例发布时间:2022-05-24
下一篇:
C# IceInternal类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap