Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class constructor called every method call
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Windows Communication Foundation (WCF)
Titre:
Class constructor called every method call
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01604869
Message ID:
01604869
Vues:
43
Hi all, I have a WCF service which makes calls into a business class and does whatever, for debugging purposes I put some logging code in the constructor of the biz class to log how many times it is created and have found it gets created every time I make a call to a method even though I only instantiate it once in the c'tor of my service class - ir this normal behaviour ? My service is set as a PerSession service.
Regards,
Peter J. Kane



Pete
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform