Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generic code to be executed at every hit
Message
De
17/04/2006 16:50:26
 
 
À
17/04/2006 16:47:27
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Divers
Thread ID:
01114103
Message ID:
01114157
Vues:
19
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform