|
@@ -72,83 +72,6 @@ public:
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
- ErrorCodeEnum ReadWaitMore()
|
|
|
- {
|
|
|
- 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();
|
|
|
- }
|
|
|
- auto ret = pFunc->OnewayCall(IDCertService_Method_ReadWaitMore, IDCertService_MethodSignature_ReadWaitMore, m_context);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
-
|
|
|
- ErrorCodeEnum Exit()
|
|
|
- {
|
|
|
- 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();
|
|
|
- }
|
|
|
- auto ret = pFunc->OnewayCall(IDCertService_Method_Exit, IDCertService_MethodSignature_Exit, m_context);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
-
|
|
|
- ErrorCodeEnum Eject(IDCertService_Eject_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(IDCertService_Method_Eject, IDCertService_MethodSignature_Eject, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
- m_context.clear();
|
|
|
- return ret;
|
|
|
- }
|
|
|
- ErrorCodeEnum Eject(IDCertService_Eject_Req &Req, IDCertService_Eject_Ans &Ans, DWORD dwTimeout)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = Eject(Req, spAsyncWait, dwTimeout);
|
|
|
- if (Error == Error_Succeed) {
|
|
|
- bool bEnd = false;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
- LOG_ASSERT(Error || bEnd);
|
|
|
- }
|
|
|
- return Error;
|
|
|
- }
|
|
|
- ErrorCodeEnum Eject(IDCertService_Eject_Req &Req, IDCertService_Eject_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = Eject(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 Eject(IDCertService_Eject_Req &Req, IDCertService_Eject_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
- {
|
|
|
- CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
- ErrorCodeEnum Error = Eject(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 GetDevInfo(IDCertService_GetDevInfo_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
{
|
|
|
CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|