Пример #1
0
            public ServerThreadData(GatewayServer gatewayServer, NetworkDevice device)
            {
                this.gatewayServer = gatewayServer;
                this.device        = device;

                thread = new Thread(new ThreadStart(ConnectionThread));
                thread.Start();
            }
Пример #2
0
        /// <summary>
        /// Releases this Gateway.
        /// </summary>
        public void TearDown()
        {
            if (radar != null)
            {
                radar.TearDown();
                radar = null;
            }

            server.TearDown();
            server = null;

            foreach (ChannelManager cm in channelManagers.Values)
            {
                cm.TearDown();
            }
            channelManagers.Clear();
            channelManagers = null;

            if (app != null)
            {
                app.TearDown();
            }
        }
Пример #3
0
            public ServerThreadData(GatewayServer gatewayServer, NetworkDevice device)
            {
                this.gatewayServer = gatewayServer;
                this.device = device;

                thread = new Thread(new ThreadStart(ConnectionThread));
                thread.Start();
            }
Пример #4
0
 private void PrepareServer()
 {
     server = new GatewayServer(this);
 }
Пример #5
0
        /// <summary>
        /// Releases this Gateway.
        /// </summary>
        public void TearDown()
        {
            if (radar != null)
            {
                radar.TearDown();
                radar = null;
            }

            server.TearDown();
            server = null;

            foreach (ChannelManager cm in channelManagers.Values)
                cm.TearDown();
            channelManagers.Clear();
            channelManagers = null;

            if (app != null)
                app.TearDown();
        }
Пример #6
0
 private void PrepareServer()
 {
     server = new GatewayServer(this);
 }