示例#1
0
 public DtoActionResult UpdateLastSocketResult(DtoStringResponse result)
 {
     Request.Method   = Method.POST;
     Request.Resource = string.Format("ProvisionedComm/{0}/UpdateLastSocketResult/", Resource);
     return(new ApiRequest().ExecuteSymKeyEncryption <DtoActionResult>(Request,
                                                                       JsonConvert.SerializeObject(result)));
 }
示例#2
0
        public DtoBoolResponse Shutdown(DtoStringResponse delay)
        {
            Logger.Info("Server Issued Shutdown Request.  Shutting Down.");
            var t = new Thread(() => RunShutdown(delay.Value));

            t.Start();
            return(new DtoBoolResponse {
                Value = true
            });
        }
示例#3
0
        public DtoBoolResponse Reboot(DtoStringResponse delay)
        {
            Logger.Info("Server Issued Reboot Request.  Rebooting.");
            var t = new Thread(() => RunReboot(delay.Value));

            t.Start();
            return(new DtoBoolResponse {
                Value = true
            });
        }