Ejemplo n.º 1
0
        private static void StartOpcuaServer(ServerApplication opcuaServer, AppSettings appSettings, ILogger logger)
        {
            var master = new LibUA.Server.Master(opcuaServer, appSettings.OpcuaPort, appSettings.Timeout, appSettings.Backlog, appSettings.MaxClients, logger);

            master.Start();

            var timer = new Timer(appSettings.MonitoringInterval);

            timer.Elapsed += (sender, e) => { opcuaServer.PlayRow(); };

            timer.Start();
        }