public static IExMiddlewareDevice GetOldClient(MiddlewareTcpEndPoint endPoint, string detail, string token, List <string> oprRules, List <string> opredRules)
        {
            MiddlewareDevice inst = new MiddlewareDevice();

            inst.Initialization(endPoint, detail, token, oprRules, opredRules);
            return(inst as IExMiddlewareDevice);
        }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         localDevice.Initialization(new MiddlewareTcpEndPoint(ipAddress, port), initDetail, opRulesList, opredRulesList);
     }
     catch (System.Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
 }