Singleton class in DLL used on multiple virtual directories
Posted
by Drejc
on Stack Overflow
See other posts from Stack Overflow
or by Drejc
Published on 2010-03-24T14:41:55Z
Indexed on
2010/03/24
14:43 UTC
Read the original article
Hit count: 388
I have the following situation:
- multiple virtual directories under same application pool in IIS
- copy of same DLL in all those directories (same version number)
- a singleton class in one in this DLL
The question is, is this singleton class created only once for all those Virtual Directory instances or is there for each of there one singleton class.
The code looks something like this:
[
Transaction(TransactionOption.Supported),
ClassInterface(ClassInterfaceType.AutoDispatch),
Guid("7DE45C4D-19BE-4AA4-A2DA-F4D86E6502A8")
]
public class SomeClass
{
private static readonly Singleton singleton = new Singleton();
© Stack Overflow or respective owner