Last post Nov 29, 2018 03:46 PM by bruce (sqlwork.com)
Nov 28, 2018 10:26 AM|hamoz|LINK
What is the best practice , Send The same Request Id that I received from client to the Response Header or send new Request Id ?
Nov 29, 2018 08:56 AM|Sherry Chen|LINK
Hi hamoz ,
Send The same Request Id that I received from client to the Response Header
You could try to add the following code in your action
var requestId = HttpContext.Request.Headers["RequestId"];
Best Regards ,
Nov 29, 2018 03:46 PM|bruce (sqlwork.com)|LINK
you should return the same request id. also if your API makes any other calls it should use the same request id, thus they are all logically tied together to the originating request.