XResponseTimeMW

Generate and write in HTTPContext response header variables request execution time('X-Response-Time') and also provide execution time for an action('X-Action-Response-Time'). This thing may help you when is needed to analyze too mutch time-consuming applications.


Keywords
HTTP, Response, Time, Header, Variable, Middleware, Tracing, ResponseTime, XResponseTime, Profiling
License
MIT
Install
Install-Package XResponseTimeMW -Version 1.0.1.1818

Documentation

Note This repository is developed in .netstandard2.0

One important thing about this repository is that you have the possibility to monitor the execution time for the request sent to the server and the execution time for some method or class where is added data annotation attribute.

Once you use this repository, in server response you may see one or two new variables, meaning request execution time. Added variables (X-Response-Time and X-Action-Response-Time) will be location in HttpContext.Response.Headers.

In other words in this repository is included one middleware that allows to add and return of general execution time per request (the first header variable).

And one more thing that was added is an action filter that can provide execution time for a specific method when will be added data annotation tag (the second header variable).

  1. X-Response-Time - represent execution time for specific request;
  2. X-Action-Response-Time - represent execution time for specific action.

In case you wish to use it in your project, u can install the package from nuget.org or specify what version you want:

Install-Package XResponseTimeMW -Version x.x.x.x

NuGet Version

Content

  1. USING
  2. CHANGELOG
  3. BRANCH-GUIDE