Click to See Complete Forum and Search --> : Determine creation path of well-known object


bikta
September 4th, 2001, 11:40 AM
Shalom.
I writed service that opens tcp channel and registers well-known singleton object in 4 different virtual directories. Like that:

RemotingConfiguration.RegisterWellKnownServiceType(
typeof(SingletonClass),
"MyVirtualDir1", // first
WellKnownObjectMode.Singleton);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(SingletonClass),
"MyVirtualDir2", // <- here the change
WellKnownObjectMode.Singleton);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(SingletonClass),
"MyVirtualDir3",
WellKnownObjectMode.Singleton);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(SingletonClass),
"MyVirtualDir4",
WellKnownObjectMode.Singleton);

So, at every point of the time will be at most 4 singleton objects - 1 for each virtual directory. Can I at singleton constructor determine, via which virtual directory this specific instance was created ?


Thanks,-
Vyacheslav (Eliyahu) Biktagirov
Software Engineer
elib2@clal-ins.co.il
Software Resources
http://www.srl.co.il

Please visit this link:
http://rotter.net/israel
(updated every time)