Exemplo n.º 1
0
        public static void TagServerConnect(string applicationName, string ip, int port, string serverUrl, string[] workStatus)
        {
            CommStatus = new Dictionary <string, WorkStatus>();
            foreach (string commid in workStatus)
            {
                Add(commid);
            }

            TagInfoAlias alias = new TagInfoAlias {
                ApplicationName = applicationName, Ip = ip, Port = port, ServerUrl = serverUrl, WorkStatus = workStatus
            };
            ////Program.aptClient = null;

            TagServerMarshalByRefObject obj = new TagServerMarshalByRefObject();

            Program.aptClient = new TagInfoAdater <TagServerMarshalByRefObject>(alias);
            //Program.aptClient = new TagInfoAdater<TagServerMarshalByRefObject>(alias);
            Program.aptClient.RecieveServerActive();
            Program.aptClient.Connect();
        }
 public void RemoveSubscription(Type type, string methodName, TagInfoAlias url)
 {
     //throw new NotImplementedException();
 }
 public void AddSubscription(Type type, TagInfoAlias url)
 {
     //throw new NotImplementedException();
 }