本文整理汇总了C#中Ice.Current类的典型用法代码示例。如果您正苦于以下问题:C# Ice.Current类的具体用法?C# Ice.Current怎么用?C# Ice.Current使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Ice.Current类属于命名空间,在下文中一共展示了Ice.Current类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IncomingBase
protected internal IncomingBase(Instance instance, ResponseHandler handler, Ice.ConnectionI connection,
Ice.ObjectAdapter adapter, bool response, byte compress, int requestId)
{
instance_ = instance;
responseHandler_ = handler;
response_ = response;
compress_ = compress;
if(response_)
{
os_ = new BasicStream(instance, Ice.Util.currentProtocolEncoding);
}
current_ = new Ice.Current();
current_.id = new Ice.Identity();
current_.adapter = adapter;
current_.con = connection;
current_.requestId = requestId;
cookie_ = null;
}
示例2: 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__;
}
示例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__;
}
示例4: 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__;
}
示例5: IncomingBase
protected internal IncomingBase(Instance instance, Ice.ConnectionI connection, Ice.ObjectAdapter adapter,
bool response, byte compress, int requestId)
{
instance_ = instance;
response_ = response;
compress_ = compress;
os_ = new BasicStream(instance);
connection_ = connection;
current_ = new Ice.Current();
current_.id = new Ice.Identity();
current_.adapter = adapter;
current_.con = connection;
current_.requestId = requestId;
cookie_ = null;
}
示例6: 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__;
}
示例7: setProperty
public void setProperty(string id, string propertyName, string value, _System.Collections.Generic.Dictionary<string, string> context__)
{
Ice.Current current__ = new Ice.Current();
initCurrent__(ref current__, "setProperty", Ice.OperationMode.Normal, context__);
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);
}
servant__.setProperty(id, propertyName, value, 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__);
}
}
示例8: 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__;
}
示例9: 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__;
}
示例10: 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__);
}
}
示例11: 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__;
}
示例12: 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__);
}
}
示例13: 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__);
}
}
示例14: 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__);
}
}
示例15: 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__;
}