Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generic code to be executed at every hit
Message
From
17/04/2006 16:50:26
 
 
To
17/04/2006 16:47:27
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
01114103
Message ID:
01114157
Views:
20
>I don't see an event for the end of a request. Now that I think about it, your web service is created and destroyed with each request. All you have to do is add code to the generated proxy class in the New() and Dispose() methods. To see which function is going to be called, you may have to look through the Request.HTTPHeader object.
>
>This will work, but it will be a royal PITA because your proxy class will get nuked every time you recompile the web service.

The New() is only processed on the first hit. If I put code in there, it will only be done once, unless IIS is restarted or if I upload a new version of the Web Service.

I think what I did is probably the best approach.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform