Start() public method

public Start ( ) : void
return void
Ejemplo n.º 1
0
        private void StartDeviceServer(object obj)
        {
            var config = (DeviceConfiguration)obj;

            var plugins = new List <IServerPlugin>();

            foreach (var plugin in serverPlugins)
            {
                var newInstance = CreatePluginInstance(plugin);
                if (newInstance != null)
                {
                    plugins.Add(newInstance);
                }
            }

            var server = new DeviceServer(config, plugins);

            server.Started += Server_Started;
            server.Stopped += Server_Stopped;
            devices.Add(server);
            server.Start();

            UpdateLoginInformation(server);
        }
Ejemplo n.º 2
0
        private void StartDeviceServer(object obj)
        {
            var config = (DeviceConfiguration)obj;

            var plugins = new List<IServerPlugin>();

            foreach (var plugin in serverPlugins)
            {
                var newInstance = CreatePluginInstance(plugin);
                if (newInstance != null) plugins.Add(newInstance);
            }

            var server = new DeviceServer(config, plugins);
            server.Started += Server_Started;
            server.Stopped += Server_Stopped;
            devices.Add(server);
            server.Start();

            UpdateLoginInformation(server);
        }