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
I had a use case for it in Azure Functions where there is no middleware pipeline to hook into, so I used the library and added a small class that emulates the key bits of the middleware from this project but allowing it to be called as a wrapper function on a single HTTP Request in isolation.
You can see the code in this gist and you use it like this:
publicMyFunc(HttpCorrelation http){this.http=http;}[FunctionName(nameof("MyFunc"))]publicasyncTask<IActionResult>Put([HttpTrigger(AuthorizationLevel.Function,"put",Route="endpoint")]HttpRequestreq){returnawaithttp.ExecuteFunction(req,async()=>{// Do stuff ...returnnewAcceptedResult();});}
Just posting it here in case it is of use to anyone or you wanted to adopt a version of it.
The text was updated successfully, but these errors were encountered:
Hi,
Thanks for this library, it is great.
I had a use case for it in Azure Functions where there is no middleware pipeline to hook into, so I used the library and added a small class that emulates the key bits of the middleware from this project but allowing it to be called as a wrapper function on a single HTTP Request in isolation.
You can see the code in this gist and you use it like this:
Just posting it here in case it is of use to anyone or you wanted to adopt a version of it.
The text was updated successfully, but these errors were encountered: