Exemplo n.º 1
0
        public override async Task <MonitorOnReply> MonitorOn(MonitorOnRequest request, ServerCallContext context)
        {
            var result = await InteropService.MonitorOn();

            return(new MonitorOnReply()
            {
                Success = result
            });
        }
 public override Task <MonitorOnReply> MonitorOn(MonitorOnRequest request, ServerCallContext context)
 {
     Log.Info("Executing [{Name}]", nameof(MonitorOn));
     NativeMethods.Monitor.On();
     return(Task.FromResult(new MonitorOnReply()));
 }