If you are building an ASP.NET Web API and want a view into the HTTP traffic that is hitting your API then this is a really quick solution that might prove useful.
Add a MessageHandler
In your Web API project, simply add the Nuget package Runscope.HttpMessageHandler and the following line of code in your Web API configuration code:
You can get an API key by creating an Application within Runscope.
- Login to your Runscope account
- Click on your name on the top-right to access your profile
- Select Applications on the left-side menu
- Click the Create Application button
You'll find the bucket key from the Traffic Inspector view. It's located at the bottom of the left-side menu.
And you’re done.
Let me show you...
The following screencast demonstrates how to create an ASP.NET Web API, setup a Runscope account and add Runscope logging to your API in less than 5 minutes.
Image Credit : Monitor https://flic.kr/p/4druiD