本文整理汇总了C#中IceInternal.endWriteParams__方法的典型用法代码示例。如果您正苦于以下问题:C# IceInternal.endWriteParams__方法的具体用法?C# IceInternal.endWriteParams__怎么用?C# IceInternal.endWriteParams__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IceInternal
的用法示例。
在下文中一共展示了IceInternal.endWriteParams__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: get___
public static Ice.DispatchStatus get___(Hello obj__, IceInternal.Incoming inS__, Ice.Current current__)
{
Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
IceInternal.BasicStream is__ = inS__.startReadParams();
string name;
name = is__.readString();
inS__.endReadParams();
Demo.Structure ret__ = obj__.get(name, current__);
IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
Demo.Structure.write__(os__, ret__);
inS__.endWriteParams__(true);
return Ice.DispatchStatus.DispatchOK;
}
示例2: grant_privilige___
public static Ice.DispatchStatus grant_privilige___(AppService obj__, IceInternal.Incoming inS__, Ice.Current current__)
{
Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
IceInternal.BasicStream is__ = inS__.startReadParams();
string valid_thru;
IceInternal.ParamPatcher<minie.irpc.cm_user_friend_rpc> friend__PP = new IceInternal.ParamPatcher<minie.irpc.cm_user_friend_rpc>(minie.irpc.cm_user_friend_rpc.ice_staticId());
is__.readObject(friend__PP);
IceInternal.ParamPatcher<minie.irpc.cm_node_rpc> room__PP = new IceInternal.ParamPatcher<minie.irpc.cm_node_rpc>(minie.irpc.cm_node_rpc.ice_staticId());
is__.readObject(room__PP);
valid_thru = is__.readString();
is__.readPendingObjects();
inS__.endReadParams();
minie.irpc.cm_friend_privilege_rpc ret__ = obj__.grant_privilige(friend__PP.value, room__PP.value, valid_thru, current__);
IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
os__.writeObject(ret__);
os__.writePendingObjects();
inS__.endWriteParams__(true);
return Ice.DispatchStatus.DispatchOK;
}
示例3: ice_isA___
public static DispatchStatus ice_isA___(Ice.Object __obj, IceInternal.Incoming inS__, Current __current)
{
IceInternal.BasicStream is__ = inS__.startReadParams();
string __id = is__.readString();
inS__.endReadParams();
bool __ret = __obj.ice_isA(__id, __current);
IceInternal.BasicStream os__ = inS__.startWriteParams__(FormatType.DefaultFormat);
os__.writeBool(__ret);
inS__.endWriteParams__(true);
return DispatchStatus.DispatchOK;
}
示例4: 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;
}
}
示例5: 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;
}
}
示例6: send_verification_sms___
public static Ice.DispatchStatus send_verification_sms___(AppAuth 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();
bool ret__ = obj__.send_verification_sms(cellphone, current__);
IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
os__.writeBool(ret__);
inS__.endWriteParams__(true);
return Ice.DispatchStatus.DispatchOK;
}
示例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;
}
}
示例8: find_app_user___
public static Ice.DispatchStatus find_app_user___(BackendService obj__, IceInternal.Incoming inS__, Ice.Current current__)
{
Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
IceInternal.BasicStream is__ = inS__.startReadParams();
string keywords;
keywords = is__.readString();
inS__.endReadParams();
_System.Collections.Generic.List<minie.irpc.cm_user_rpc> ret__ = obj__.find_app_user(keywords, current__);
IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
minie.irpc.cm_user_rpc_listHelper.write(os__, ret__);
os__.writePendingObjects();
inS__.endWriteParams__(true);
return Ice.DispatchStatus.DispatchOK;
}
示例9: register_app_user_step1___
public static Ice.DispatchStatus register_app_user_step1___(BackendService 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();
bool ret__ = obj__.register_app_user_step1(cellphone, current__);
IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
os__.writeBool(ret__);
inS__.endWriteParams__(true);
return Ice.DispatchStatus.DispatchOK;
}
示例10: get_current_user_info___
public static Ice.DispatchStatus get_current_user_info___(BackendService obj__, IceInternal.Incoming inS__, Ice.Current current__)
{
Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
inS__.readEmptyParams();
minie.irpc.sys_user_rpc ret__ = obj__.get_current_user_info(current__);
IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
os__.writeObject(ret__);
os__.writePendingObjects();
inS__.endWriteParams__(true);
return Ice.DispatchStatus.DispatchOK;
}
示例11: get_permissions___
public static Ice.DispatchStatus get_permissions___(BackendService obj__, IceInternal.Incoming inS__, Ice.Current current__)
{
Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
inS__.readEmptyParams();
_System.Collections.Generic.List<minie.irpc.sys_permission_rpc> ret__ = obj__.get_permissions(current__);
IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
minie.irpc.sys_permission_rpc_listHelper.write(os__, ret__);
os__.writePendingObjects();
inS__.endWriteParams__(true);
return Ice.DispatchStatus.DispatchOK;
}
示例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;
}
}
示例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;
}
}
示例14: getBalance___
public static Ice.DispatchStatus getBalance___(Account obj__, IceInternal.Incoming inS__, Ice.Current current__)
{
checkMode__(Ice.OperationMode.Normal, current__.mode);
inS__.readEmptyParams();
int ret__ = obj__.getBalance(current__);
IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
os__.writeInt(ret__);
inS__.endWriteParams__(true);
return Ice.DispatchStatus.DispatchOK;
}
示例15: 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;
}
}