Skip to content

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 analyse application time consumiing.

License

Notifications You must be signed in to change notification settings

I-RzR-I/XResponseTimeMW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note This repository is developed in .netstandard2.0

NuGet Version Nuget Downloads

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

Content

  1. USING
  2. CHANGELOG
  3. BRANCH-GUIDE

About

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 analyse application time consumiing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published