Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class constructor called every method call
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Windows Communication Foundation (WCF)
Title:
Class constructor called every method call
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01604869
Message ID:
01604869
Views:
44
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
Next
Reply
Map
View

Click here to load this message in the networking platform