예제 #1
0
        /// <summary>
        /// Constructor of the class Subscriber
        /// It retrives the endpoint address of cms  from config file  to connect with that.
        /// alse creates BroadcastReceiver instance.
        /// </summary>
        /// <param name="url">Url</param>
        /// <param name="ev">Event</param>
        public Subscriber(string url, Action ev)
        {
            Endpoint = url;
            this.ev  = ev;

            CommunicationObject = new IpcHelper();
            CommunicationObject.MakeClient(Endpoint, this);
        }
예제 #2
0
 /// <summary>
 /// Constructor of the class Subscriber
 /// It retrives the endpoint address of cms  from config file  to connect with that.
 /// alse creates BroadcastReceiver instance.
 /// </summary>
 /// <param name="url">Url</param>
 /// <param name="ev">Event</param>
 public Subscriber(string url)
 {
     Endpoint            = url;
     communicationObject = new IpcHelper();
     communicationObject.MakeClient(Endpoint, this);
 }