Ejemplo n.º 1
0
 public void ReconnectConnectToServer()
 {
     if (TestConnection() == false)
     {
         ProcessConnectionServer = Activator.GetObject(typeof(IProcessConnectionServer), "tcp://" + IP + ":" + Port + "/" + ConnectionString) as IProcessConnectionServer;
         AlarmEvents.ClearAlarmEvents();
     }
 }
Ejemplo n.º 2
0
        public void ConnectToServer(string ip, string port, string connectionstring)
        {
            IP               = ip;
            Port             = port;
            ConnectionString = connectionstring;

            ProcessConnectionServer = Activator.GetObject(typeof(IProcessConnectionServer), "tcp://" + IP + ":" + Port + "/" + ConnectionString) as IProcessConnectionServer;
            AlarmConfig.LoadAlarmsConfigFile();
            AlarmEvents.ClearAlarmEvents();
        }