|
@@ -218,6 +218,12 @@ public:
|
|
|
{
|
|
|
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(AccessAuthService_Method_GetNetMsg, AccessAuthService_MethodSignature_GetNetMsg, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
m_context.clear();
|
|
|
return ret;
|
|
@@ -233,17 +239,77 @@ public:
|
|
|
}
|
|
|
return Error;
|
|
|
}
|
|
|
+ ErrorCodeEnum GetNetMsg(AccessAuthService_GetNetMsg_Req &Req, AccessAuthService_GetNetMsg_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetNetMsg(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 GetNetMsg(AccessAuthService_GetNetMsg_Req &Req, AccessAuthService_GetNetMsg_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
{
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = GetNetMsg(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;
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetNetMsg(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 CloseTempWindow(AccessAuthService_CloseTempWindow_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(AccessAuthService_Method_CloseTempWindow, AccessAuthService_MethodSignature_CloseTempWindow, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum CloseTempWindow(AccessAuthService_CloseTempWindow_Req &Req, AccessAuthService_CloseTempWindow_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = CloseTempWindow(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum CloseTempWindow(AccessAuthService_CloseTempWindow_Req &Req, AccessAuthService_CloseTempWindow_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = CloseTempWindow(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 CloseTempWindow(AccessAuthService_CloseTempWindow_Req &Req, AccessAuthService_CloseTempWindow_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = CloseTempWindow(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;
|
|
|
}
|
|
|
|
|
|
|