|
-
September 4th, 2001, 11:40 AM
#1
Determine creation path of well-known object
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
[email protected]
Software Resources
http://www.srl.co.il
Please visit this link:
http://rotter.net/israel
(updated every time)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|