|
@@ -156,100 +156,6 @@ public:
|
|
|
return Error;
|
|
|
}
|
|
|
|
|
|
- ErrorCodeEnum CrossTermCall(HeartBeatService_CrossTermCall_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
- {
|
|
|
- CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
- CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
- if (m_context.checkEmpty())
|
|
|
- {
|
|
|
- m_context.AutoGenerate();
|
|
|
- DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
- m_context = m_context.upgradeLink();
|
|
|
- }
|
|
|
- auto ret = pFunc->AsyncRequest(HeartBeatService_Method_CrossTermCall, HeartBeatService_MethodSignature_CrossTermCall, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
- ErrorCodeEnum CrossTermCall(HeartBeatService_CrossTermCall_Req &Req, HeartBeatService_CrossTermCall_Ans &Ans, DWORD dwTimeout)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = CrossTermCall(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
- ErrorCodeEnum CrossTermCall(HeartBeatService_CrossTermCall_Req &Req, HeartBeatService_CrossTermCall_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = CrossTermCall(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
- ErrorCodeEnum CrossTermCall(HeartBeatService_CrossTermCall_Req &Req, HeartBeatService_CrossTermCall_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = CrossTermCall(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- CSimpleString str;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
-
|
|
|
- ErrorCodeEnum CrossTermInvokeInfo(HeartBeatService_CrossTermInvokeInfo_Info &Info)
|
|
|
- {
|
|
|
- CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
- if (m_context.checkEmpty())
|
|
|
- {
|
|
|
- m_context.AutoGenerate();
|
|
|
- DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
- m_context = m_context.upgradeLink();
|
|
|
- }
|
|
|
- CAutoBuffer Buf = SpObject2Buffer(Info);
|
|
|
- auto ret = pFunc->OnewayCall(HeartBeatService_Method_CrossTermInvokeInfo, HeartBeatService_MethodSignature_CrossTermInvokeInfo, Buf, m_context);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
-
|
|
|
- ErrorCodeEnum CallFromILToRVC(HeartBeatService_CallFromILToRVC_Info &Info)
|
|
|
- {
|
|
|
- CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
- if (m_context.checkEmpty())
|
|
|
- {
|
|
|
- m_context.AutoGenerate();
|
|
|
- DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
- m_context = m_context.upgradeLink();
|
|
|
- }
|
|
|
- CAutoBuffer Buf = SpObject2Buffer(Info);
|
|
|
- auto ret = pFunc->OnewayCall(HeartBeatService_Method_CallFromILToRVC, HeartBeatService_MethodSignature_CallFromILToRVC, Buf, m_context);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
-
|
|
|
- ErrorCodeEnum CallResultToIL(HeartBeatService_CallResultToIL_Info &Info)
|
|
|
- {
|
|
|
- CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
- if (m_context.checkEmpty())
|
|
|
- {
|
|
|
- m_context.AutoGenerate();
|
|
|
- DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
- m_context = m_context.upgradeLink();
|
|
|
- }
|
|
|
- CAutoBuffer Buf = SpObject2Buffer(Info);
|
|
|
- auto ret = pFunc->OnewayCall(HeartBeatService_Method_CallResultToIL, HeartBeatService_MethodSignature_CallResultToIL, Buf, m_context);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
bool SafeDelete()
|
|
|
{
|