How can Remoting Obj Uri be gernated at runtime at subscriber's end?
-
Hello, I am implementing publisher/subscriber pattern with the use of .NET Remoting.For this i don't want to take URI's from configuration file every time a new subscriber want to subscribe to publisher, As physically there's only a single process that will behave as subscriber. But when publisher want to publish the content to subscriber, it will search for its URI from its data structures. e.g let say there are 4 seperate processes having instances(XYZ_instance1,XYZ_instance2,XYZ_instance3,XYZ_instance4) launched of "XYZ.exe". Now publisher want's to publish the contents on XYZ_instance3(XYZ_instance3 would have its different uri).For this every time XYZ's instance is subscribing it must carry its unique URI, which will be added in publisher's data structure, describing about its identity as uri. Whenever some data needs to publish, publisher will use this URI. The problem is every time a new instance is launching and subscribing, it will read its uri from app.config, which will be same all the time new instance of XYZ is started(as its a same process and will access the same app.config, which's just having single uri). FOR this i have to generate a unique URI every time, instance is started, and that URI whould be known by Remoting envirnment.