Static class in business logic Application or Session

M

MattC

I have a static method in a class that sets some static private members that
are exposed by public properties.
This class sits in a business logic assembly.

My question is will that object exist as a static object per session or per
application.

TIA
 
K

Kevin Spencer

Per application.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
J

Janaka

Static calls are made outside of an object instantiation, so your never
really creating a new object. You would have to create an instance of your
class and place the object instance into either the session or application
if that's what your trying to do, in which case you may not want to use
static members.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top