public void Emulate() { server = new Server(); Thread.Sleep(Timeout.Infinite); server.Dispose(); server = null; }
protected override void OnShutdown() { server.Dispose(); server = null; }