本文整理汇总了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__;
}
示例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__);
}
}
示例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__);
}
}
示例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__);
}
}
}
示例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__);
}
}
示例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__;
}
示例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__;
}