public override Task <response> command(command_request request, ServerCallContext context) { if (request.Token == Token) { _logger.LogInformation($"A request for command was sent : {request.Cmd}"); return(Task.FromResult(new response { Status = true, Message = JsonConvert.SerializeObject(SystemInfo.Command(request.Cmd)) })); } else { return(Task.FromResult(new response { Status = false, Message = "Authentication was not successful" })); } }