asp.net - HttpRequest object in HealthMonitoring -


I am installing some health monitoring for an ASP.NET 2.0 app.

To be able to select the original web request object I want to inspect the header sent through the medium and I would like to inspect any post data if possible.

I currently have an event provider that is inherited from WebEventProvider, but it only includes HttpWebResponse data, not the request.

How can I go about this?

Do you want to monitor only for monitoring your application or monitoring all applications in IIS?

For your own application only, you can create a class and get it from IHttpModule and in the Init method, you can also create event notifications to monitor the request of any other state.

  Public class MyMonitor: IHttpModule {Public Zero Init (HttpApplication Reference) {/ You can see any such event and answer the reference accordingly. BeginRequest + = New EventHandler (context_BeginRequest); Context.PostUpdateRequestCache + = New EventModer (Reference File Update) Request; Context.Error + = new event handler (context_Error); } .....}  

and you can enter your web.config

  & lt; HttpModules & gt; The following line can be added in & Lt; Add name = "mimonitor" type = "namespace .mimonitor" /> & Lt; / HttpModules & gt;  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -