Hi, I need to make a context or an ambient for the instances of a class and know if other instances are running. Something like TransactionScopes.
Example:
private void method1()
{
using (myclass mc1 = new myclass())
{
method2();
}
}
private void method2()
{
using (myclass mc2 = new myclass())
{
//Here I need to know if any other instance of myclass (mc1 for this sample) is
//alive, and get some property values for this instance.
}
}
somebody knows a pattern or anything that helps me to find the solution?.
thanks.