Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bachuv committed Nov 13, 2023
1 parent d0e6e99 commit 9870119
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
4 changes: 1 addition & 3 deletions src/Worker.Extensions.DurableTask/HTTP/DurableHttpRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ public class DurableHttpRequest
/// <summary>
/// Initializes a new instance of the <see cref="DurableHttpRequest"/> class.
/// </summary>
public DurableHttpRequest(
HttpMethod method,
Uri uri)
public DurableHttpRequest(HttpMethod method, Uri uri)
{
this.Method = method;
this.Uri = uri;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ public class DurableHttpResponse
/// Initializes a new instance of the <see cref="DurableHttpResponse"/> class.
/// </summary>
/// <param name="statusCode">HTTP Status code returned from the HTTP call.</param>
public DurableHttpResponse(
HttpStatusCode statusCode)
public DurableHttpResponse(HttpStatusCode statusCode)
{
this.StatusCode = statusCode;
}
Expand Down
1 change: 0 additions & 1 deletion src/Worker.Extensions.DurableTask/HTTP/HttpRetryOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public class HttpRetryOptions
/// <summary>
/// Creates a new instance SerializableRetryOptions with the supplied first retry and max attempts.
/// </summary>
/// </exception>
public HttpRetryOptions(IList<HttpStatusCode>? statusCodesToRetry = null)
{
this.StatusCodesToRetry = statusCodesToRetry ?? new List<HttpStatusCode>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ public static Task<DurableHttpResponse> CallHttpAsync(this TaskOrchestrationCont
/// <returns>A <see cref="Task{DurableHttpResponse}"/>Result of the HTTP call.</returns>
public static Task<DurableHttpResponse> 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);
}
Expand Down

0 comments on commit 9870119

Please sign in to comment.