From db2aa70e0dc39d795e41689b1375748c42f239fc Mon Sep 17 00:00:00 2001 From: Cameron Cowen Date: Thu, 29 Apr 2021 21:09:35 +0100 Subject: [PATCH] Minor tweak --- src/samples/aspnet/Elsa.Samples.SendHttp/SendHttpWorkflow.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/samples/aspnet/Elsa.Samples.SendHttp/SendHttpWorkflow.cs b/src/samples/aspnet/Elsa.Samples.SendHttp/SendHttpWorkflow.cs index bef11ffe8..f6b9daf0b 100644 --- a/src/samples/aspnet/Elsa.Samples.SendHttp/SendHttpWorkflow.cs +++ b/src/samples/aspnet/Elsa.Samples.SendHttp/SendHttpWorkflow.cs @@ -4,6 +4,7 @@ using Elsa.Builders; using System; using System.Collections.Generic; using System.Linq; +using System.Text.Json; using System.Threading.Tasks; namespace Elsa.Samples.SendHttp @@ -22,7 +23,7 @@ namespace Elsa.Samples.SendHttp .WithReadContent(true)) .WithName("TestHttpRequest") .WriteHttpResponse(setup => setup.WithStatusCode(System.Net.HttpStatusCode.OK) - .WithContent(x => System.Text.Json.JsonSerializer.Serialize(x.GetOutputFrom("TestHttpRequest").Content))); + .WithContent(x => JsonSerializer.Serialize(x.GetOutputFrom("TestHttpRequest").Content))); } } }