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


C# IceInternal.writeUserException__方法代码示例

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


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

示例1: del_blacklist_member___

 public static Ice.DispatchStatus del_blacklist_member___(AppService obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     string cellphone;
     cellphone = is__.readString();
     inS__.endReadParams();
     try
     {
         int ret__ = obj__.del_blacklist_member(cellphone, current__);
         IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
         os__.writeInt(ret__);
         inS__.endWriteParams__(true);
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(minie.irpc.GenericError ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
开发者ID:srdgame,项目名称:wpf_test,代码行数:21,代码来源:minie_service_app.cs

示例2: add_member___

 public static Ice.DispatchStatus add_member___(AppService obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     string nodeID;
     string userID;
     nodeID = is__.readString();
     userID = is__.readString();
     inS__.endReadParams();
     try
     {
         minie.irpc.cm_node_user_rpc ret__ = obj__.add_member(nodeID, userID, current__);
         IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
         os__.writeObject(ret__);
         os__.writePendingObjects();
         inS__.endWriteParams__(true);
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(minie.irpc.InvalidDataError ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
开发者ID:srdgame,项目名称:wpf_test,代码行数:24,代码来源:minie_service_app.cs

示例3: get_blacklist___

 public static Ice.DispatchStatus get_blacklist___(AppService obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
     inS__.readEmptyParams();
     try
     {
         _System.Collections.Generic.List<minie.irpc.cm_user_defriend_rpc> ret__ = obj__.get_blacklist(current__);
         IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
         minie.irpc.cm_user_defriend_rpc_listHelper.write(os__, ret__);
         os__.writePendingObjects();
         inS__.endWriteParams__(true);
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(minie.irpc.GenericError ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
开发者ID:srdgame,项目名称:wpf_test,代码行数:19,代码来源:minie_service_app.cs

示例4: update_user_info___

 public static Ice.DispatchStatus update_user_info___(AppService obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     IceInternal.ParamPatcher<minie.irpc.cm_user_rpc> userInfo__PP = new IceInternal.ParamPatcher<minie.irpc.cm_user_rpc>(minie.irpc.cm_user_rpc.ice_staticId());
     is__.readObject(userInfo__PP);
     is__.readPendingObjects();
     inS__.endReadParams();
     try
     {
         int ret__ = obj__.update_user_info(userInfo__PP.value, current__);
         IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
         os__.writeInt(ret__);
         inS__.endWriteParams__(true);
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(minie.irpc.InvalidDataError ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
开发者ID:srdgame,项目名称:wpf_test,代码行数:22,代码来源:minie_service_app.cs

示例5: get_members___

 public static Ice.DispatchStatus get_members___(AppService obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     string nodeID;
     nodeID = is__.readString();
     inS__.endReadParams();
     try
     {
         _System.Collections.Generic.List<minie.irpc.cm_node_user_rpc> ret__ = obj__.get_members(nodeID, current__);
         IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
         minie.irpc.cm_node_user_rpc_listHelper.write(os__, ret__);
         os__.writePendingObjects();
         inS__.endWriteParams__(true);
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(minie.irpc.InvalidDataError ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
开发者ID:srdgame,项目名称:wpf_test,代码行数:22,代码来源:minie_service_app.cs

示例6: reset_cellphone___

 public static Ice.DispatchStatus reset_cellphone___(AppAuth obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     string newCellphone;
     string verifyCode0;
     string verifyCode1;
     newCellphone = is__.readString();
     verifyCode0 = is__.readString();
     verifyCode1 = is__.readString();
     inS__.endReadParams();
     try
     {
         int ret__ = obj__.reset_cellphone(newCellphone, verifyCode0, verifyCode1, current__);
         IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
         os__.writeInt(ret__);
         inS__.endWriteParams__(true);
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(minie.irpc.VerificationError ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
开发者ID:srdgame,项目名称:wpf_test,代码行数:25,代码来源:minie_service_app.cs

示例7: get_user_info___

 public static Ice.DispatchStatus get_user_info___(AppService obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
     inS__.readEmptyParams();
     try
     {
         minie.irpc.cm_user_rpc ret__ = obj__.get_user_info(current__);
         IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
         os__.writeObject(ret__);
         os__.writePendingObjects();
         inS__.endWriteParams__(true);
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(minie.irpc.GenericError ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
开发者ID:srdgame,项目名称:wpf_test,代码行数:19,代码来源:minie_service_app.cs

示例8: signCSR___

 public static Ice.DispatchStatus signCSR___(CertSigner obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     string name;
     string surname;
     byte[] csrFile;
     name = is__.readString();
     surname = is__.readString();
     csrFile = Ice.ByteSeqHelper.read(is__);
     inS__.endReadParams();
     try
     {
         byte[] ret__ = obj__.signCSR(name, surname, csrFile, current__);
         IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
         Ice.ByteSeqHelper.write(os__, ret__);
         inS__.endWriteParams__(true);
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(SR.DataTooLong ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
     catch(SR.IncorrectCSRFile ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
开发者ID:Netoperek,项目名称:ClienBankIce,代码行数:30,代码来源:CertSigner.cs

示例9: login_app_by_token___

 public static Ice.DispatchStatus login_app_by_token___(AppAuth obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     string token;
     token = is__.readString();
     inS__.endReadParams();
     try
     {
         minie.irpc.AppServicePrx ret__ = obj__.login_app_by_token(token, current__);
         IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
         minie.irpc.AppServicePrxHelper.write__(os__, ret__);
         inS__.endWriteParams__(true);
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(minie.irpc.AuthError ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
开发者ID:srdgame,项目名称:wpf_test,代码行数:21,代码来源:minie_service_app.cs

示例10: register_app_user_step2___

 public static Ice.DispatchStatus register_app_user_step2___(BackendService obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     string cellphone;
     string password;
     int verifyCode;
     cellphone = is__.readString();
     password = is__.readString();
     verifyCode = is__.readInt();
     inS__.endReadParams();
     try
     {
         minie.irpc.cm_user_rpc ret__ = obj__.register_app_user_step2(cellphone, password, verifyCode, current__);
         IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
         os__.writeObject(ret__);
         os__.writePendingObjects();
         inS__.endWriteParams__(true);
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(minie.irpc.VerificationError ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
开发者ID:srdgame,项目名称:wpf_test,代码行数:26,代码来源:minie_service_backend.cs

示例11: removeAccount___

 public static Ice.DispatchStatus removeAccount___(BankManager obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     string accountID;
     accountID = is__.readString();
     inS__.endReadParams();
     try
     {
         obj__.removeAccount(accountID, current__);
         inS__.writeEmptyParams__();
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(Bank.IncorrectData ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
     catch(Bank.NoSuchAccount ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
开发者ID:Netoperek,项目名称:ClienBankIce,代码行数:24,代码来源:Bank.cs

示例12: createAccount___

 public static Ice.DispatchStatus createAccount___(BankManager obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     Bank.PersonalData data;
     data = null;
     Bank.accountType type;
     if(data == null)
     {
         data = new Bank.PersonalData();
     }
     data.read__(is__);
     type = (Bank.accountType)is__.readEnum(1);
     inS__.endReadParams();
     string accountID;
     try
     {
         obj__.createAccount(data, type, out accountID, current__);
         IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
         os__.writeString(accountID);
         inS__.endWriteParams__(true);
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(Bank.IncorrectData ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
     catch(Bank.RequestRejected ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
开发者ID:Netoperek,项目名称:ClienBankIce,代码行数:34,代码来源:Bank.cs

示例13: calculateLoan___

 public static Ice.DispatchStatus calculateLoan___(PremiumAccount obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     int amount;
     Bank.currency curr;
     int period;
     amount = is__.readInt();
     curr = (Bank.currency)is__.readEnum(3);
     period = is__.readInt();
     inS__.endReadParams();
     int totalCost;
     float interestRate;
     try
     {
         obj__.calculateLoan(amount, curr, period, out totalCost, out interestRate, current__);
         IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
         os__.writeInt(totalCost);
         os__.writeFloat(interestRate);
         inS__.endWriteParams__(true);
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(Bank.IncorrectData ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
开发者ID:Netoperek,项目名称:ClienBankIce,代码行数:28,代码来源:Bank.cs

示例14: transfer___

 public static Ice.DispatchStatus transfer___(Account obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     string accountNumber;
     int amount;
     accountNumber = is__.readString();
     amount = is__.readInt();
     inS__.endReadParams();
     try
     {
         obj__.transfer(accountNumber, amount, current__);
         inS__.writeEmptyParams__();
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(Bank.IncorrectAccountNumber ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
     catch(Bank.IncorrectAmount ex__)
     {
         inS__.writeUserException__(ex__, Ice.FormatType.DefaultFormat);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
开发者ID:Netoperek,项目名称:ClienBankIce,代码行数:26,代码来源:Bank.cs


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