Beispiel #1
0
        private Task <RefStruct <bool> > UninstallQuery(UnsignQuery unsignRequest, ServerCallContext ctx)
        {
            Logger.Log($"UninstallQuery");

            return(ProcessTask <RefStruct <bool>, UninstallQueryRequestMessage, UninstallQueryResponseMessage>(
                       new UninstallQueryRequestMessage(GetType(), typeof(ZMIModule), unsignRequest)));
        }
Beispiel #2
0
        private static async Task <bool> UninstallAsync(CallInvoker invoker, UnsignQuery unsignResponse)
        {
            using var call = invoker.AsyncUnaryCall(AgentMethods.UninstallQuery, null,
                                                    new CallOptions(deadline: DateTime.UtcNow.AddSeconds(RPC_TIMEOUT_SECONDS)), unsignResponse);
            var result = await call.ResponseAsync;

            return(result.Ref);
        }
 public UninstallQueryRequestMessage(Type source, Type destination, UnsignQuery unsignRequest)
 {
     Source        = source;
     Destination   = destination;
     UnsignRequest = unsignRequest;
 }