|
@@ -12,9 +12,15 @@ namespace HealthManager {
|
|
|
class HealthManagerService_ServerSessionBase : public CServerSessionBase
|
|
|
{
|
|
|
public:
|
|
|
- HealthManagerService_ServerSessionBase() { }
|
|
|
+ HealthManagerService_ServerSessionBase()
|
|
|
+ {
|
|
|
+ /// override by user
|
|
|
+ }
|
|
|
|
|
|
- virtual ~HealthManagerService_ServerSessionBase() { }
|
|
|
+ virtual ~HealthManagerService_ServerSessionBase()
|
|
|
+ {
|
|
|
+ /// override by user
|
|
|
+ }
|
|
|
|
|
|
virtual bool IsExclusive() { return false; }
|
|
|
|
|
@@ -73,6 +79,13 @@ public:
|
|
|
Error = Error_MethodSignatureFailed;
|
|
|
}
|
|
|
break;
|
|
|
+ case HealthManagerService_Method_ControlTerminalLife:
|
|
|
+ if (dwSignature == HealthManagerService_MethodSignature_ControlTerminalLife) {
|
|
|
+ bOverlap = true;
|
|
|
+ } else {
|
|
|
+ Error = Error_MethodSignatureFailed;
|
|
|
+ }
|
|
|
+ break;
|
|
|
default:
|
|
|
Error = Error_MethodNotFound;
|
|
|
break;
|
|
@@ -119,6 +132,11 @@ public:
|
|
|
Error = Error_MethodSignatureFailed;
|
|
|
}
|
|
|
break;
|
|
|
+ case HealthManagerService_Method_ControlTerminalLife:
|
|
|
+ if (dwSignature != HealthManagerService_MethodSignature_ControlTerminalLife) {
|
|
|
+ Error = Error_MethodSignatureFailed;
|
|
|
+ }
|
|
|
+ break;
|
|
|
default:
|
|
|
Error = Error_MethodNotFound;
|
|
|
break;
|
|
@@ -161,6 +179,11 @@ public:
|
|
|
/// override by user
|
|
|
}
|
|
|
|
|
|
+ virtual void Handle_ControlTerminalLife(SpReqAnsContext<HealthManagerService_ControlTerminalLife_Req, HealthManagerService_ControlTerminalLife_Ans>::Pointer ctx)
|
|
|
+ {
|
|
|
+ /// override by user
|
|
|
+ }
|
|
|
+
|
|
|
virtual void OnRequest(CSmartPointer<ITransactionContext> pTransactionContext)
|
|
|
{
|
|
|
CAutoBuffer Buf;
|
|
@@ -233,6 +256,14 @@ public:
|
|
|
Handle_ReadCenterConfigStr(ctx);
|
|
|
}
|
|
|
break;
|
|
|
+ case HealthManagerService_Method_ControlTerminalLife:
|
|
|
+ {
|
|
|
+ SpReqAnsContext<HealthManagerService_ControlTerminalLife_Req,HealthManagerService_ControlTerminalLife_Ans>::Pointer ctx;
|
|
|
+ ctx.Attach(new SpReqAnsContext<HealthManagerService_ControlTerminalLife_Req,HealthManagerService_ControlTerminalLife_Ans>(pTransactionContext));
|
|
|
+ SpBuffer2Object(Buf, ctx->Req);
|
|
|
+ Handle_ControlTerminalLife(ctx);
|
|
|
+ }
|
|
|
+ break;
|
|
|
default:
|
|
|
assert(0);
|
|
|
break;
|