You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want to enrich the http logging with Serilog by parts of the request body. Therefore, I read from the request body which must be done async. However, if a set EnrichDiagnosticContext to an async method like the following I get the VSTHRD101 warning:
Describe the solution you'd like
In addition to the Action<IDiagnosticContext, HttpContext>? EnrichDiagnosticContext, there should be a Func<IDiagnosticContext, HttpContext, Task>? EnrichDiagnosticContextAsync that can be called asynchronously and returns just a Task.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I want to enrich the http logging with Serilog by parts of the request body. Therefore, I read from the request body which must be done async. However, if a set EnrichDiagnosticContext to an async method like the following I get the VSTHRD101 warning:
Describe the solution you'd like
In addition to the
Action<IDiagnosticContext, HttpContext>? EnrichDiagnosticContext
, there should be aFunc<IDiagnosticContext, HttpContext, Task>? EnrichDiagnosticContextAsync
that can be called asynchronously and returns just a Task.The text was updated successfully, but these errors were encountered: