private async Task <SupportsPlatformResponse> SupportsPlatform(SupportsPlatformRequest request) { var platform = request.Platform; if (platform == null) { throw new ArgumentException("Platform must be specified"); } logger.LogTrace($"Checking platform support: {platform}"); var platformInfo = JsonConvert.DeserializeObject <PlatformInfo>(platform); return(new SupportsPlatformResponse { IsSupported = currentPlatform.SupportsRunning(platformInfo), }); }