private static async Task SendResponse(AppServiceRequest request, InvocationResult result) { if (result.Result == null) return; await request.SendResponseAsync(new ValueSet { {Guid.NewGuid().ToString(), JsonConvert.Serialize(result.Result)} }); }
/// <summary> /// Serializes and sends the response for the AppServiceRequest /// </summary> private static async Task SendResponse(AppServiceRequest request, InvocationResult result) { if (result.Result == null) return; //Send a new ValueSet with the key as a random string and the value as the serialized result await request.SendResponseAsync(new ValueSet { {Guid.NewGuid().ToString(), JsonConvert.Serialize(result.Result)} }); }