diff --git a/src/Worker.Extensions.DurableTask/HTTP/DurableHttpRequest.cs b/src/Worker.Extensions.DurableTask/HTTP/DurableHttpRequest.cs index 14628c185..333c74cfd 100644 --- a/src/Worker.Extensions.DurableTask/HTTP/DurableHttpRequest.cs +++ b/src/Worker.Extensions.DurableTask/HTTP/DurableHttpRequest.cs @@ -17,9 +17,7 @@ public class DurableHttpRequest /// /// Initializes a new instance of the class. /// - public DurableHttpRequest( - HttpMethod method, - Uri uri) + public DurableHttpRequest(HttpMethod method, Uri uri) { this.Method = method; this.Uri = uri; diff --git a/src/Worker.Extensions.DurableTask/HTTP/DurableHttpResponse.cs b/src/Worker.Extensions.DurableTask/HTTP/DurableHttpResponse.cs index b959cd90a..06875d9e4 100644 --- a/src/Worker.Extensions.DurableTask/HTTP/DurableHttpResponse.cs +++ b/src/Worker.Extensions.DurableTask/HTTP/DurableHttpResponse.cs @@ -17,8 +17,7 @@ public class DurableHttpResponse /// Initializes a new instance of the class. /// /// HTTP Status code returned from the HTTP call. - public DurableHttpResponse( - HttpStatusCode statusCode) + public DurableHttpResponse(HttpStatusCode statusCode) { this.StatusCode = statusCode; } diff --git a/src/Worker.Extensions.DurableTask/HTTP/HttpRetryOptions.cs b/src/Worker.Extensions.DurableTask/HTTP/HttpRetryOptions.cs index 77ba82923..959f7e047 100644 --- a/src/Worker.Extensions.DurableTask/HTTP/HttpRetryOptions.cs +++ b/src/Worker.Extensions.DurableTask/HTTP/HttpRetryOptions.cs @@ -20,7 +20,6 @@ public class HttpRetryOptions /// /// Creates a new instance SerializableRetryOptions with the supplied first retry and max attempts. /// - /// public HttpRetryOptions(IList? statusCodesToRetry = null) { this.StatusCodesToRetry = statusCodesToRetry ?? new List(); diff --git a/src/Worker.Extensions.DurableTask/TaskOrchestrationContextExtensionMethods.cs b/src/Worker.Extensions.DurableTask/TaskOrchestrationContextExtensionMethods.cs index aff730038..c5523d002 100644 --- a/src/Worker.Extensions.DurableTask/TaskOrchestrationContextExtensionMethods.cs +++ b/src/Worker.Extensions.DurableTask/TaskOrchestrationContextExtensionMethods.cs @@ -41,10 +41,11 @@ public static Task CallHttpAsync(this TaskOrchestrationCont /// A Result of the HTTP call. public static Task CallHttpAsync(this TaskOrchestrationContext context, HttpMethod method, Uri uri, string? content = null, HttpRetryOptions? retryOptions = null) { - DurableHttpRequest request = new DurableHttpRequest(method, uri); - - request.Content = content; - request.HttpRetryOptions = retryOptions; + DurableHttpRequest request = new DurableHttpRequest(method, uri) + { + Content = content, + HttpRetryOptions = retryOptions, + }; return context.CallHttpAsync(request); }