public ServerThreadData(GatewayServer gatewayServer, NetworkDevice device) { this.gatewayServer = gatewayServer; this.device = device; thread = new Thread(new ThreadStart(ConnectionThread)); thread.Start(); }
/// <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(); } }
private void PrepareServer() { server = new GatewayServer(this); }
/// <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(); }