Skip to content

Commit

Permalink
Change CreateRequestAsync to ConfigAwaitNetCore()
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Oct 29, 2022
1 parent d7d7436 commit 9e4be57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -51,7 +51,7 @@ public override async Task ProcessRequestAsync(IRequest httpReq, IResponse httpR

httpReq.ResponseContentType = httpReq.GetQueryStringContentType() ?? this.HandlerContentType;

var request = httpReq.Dto = await CreateRequestAsync(httpReq, operationName).ConfigAwait();
var request = httpReq.Dto = await CreateRequestAsync(httpReq, operationName).ConfigAwaitNetCore();

await appHost.ApplyRequestFiltersAsync(httpReq, httpRes, request).ConfigAwait();
if (httpRes.IsClosed)
Expand Down
Expand Up @@ -27,7 +27,7 @@ public override async Task ProcessRequestAsync(IRequest httpReq, IResponse httpR

try
{
var request = httpReq.Dto = await CreateRequestAsync(httpReq, operationName).ConfigAwait();
var request = httpReq.Dto = await CreateRequestAsync(httpReq, operationName).ConfigAwaitNetCore();

await appHost.ApplyRequestFiltersAsync(httpReq, httpRes, request).ConfigAwait();
if (httpRes.IsClosed)
Expand Down
2 changes: 1 addition & 1 deletion ServiceStack/src/ServiceStack/Host/RestHandler.cs
Expand Up @@ -87,7 +87,7 @@ public override async Task ProcessRequestAsync(IRequest req, IResponse httpRes,

appHost.AssertContentType(httpReq.ResponseContentType);

var request = httpReq.Dto = await CreateRequestAsync(httpReq, restPath).ConfigAwait();
var request = httpReq.Dto = await CreateRequestAsync(httpReq, restPath).ConfigAwaitNetCore();

await appHost.ApplyRequestFiltersAsync(httpReq, httpRes, request).ConfigAwait();
if (httpRes.IsClosed)
Expand Down

0 comments on commit 9e4be57

Please sign in to comment.