Beispiel #1
0
        public void Dispose()
        {
            if (_ipcBinaryHost != null)
            {
                _ipcBinaryHost.Dispose();
                _ipcBinaryHost = null;
            }

            if (_tcpBinaryHost != null)
            {
                _tcpBinaryHost.Dispose();
                _tcpBinaryHost = null;
            }

            if (_tcpCustomHost != null)
            {
                _tcpCustomHost.Dispose();
                _tcpCustomHost = null;
            }

            if (_tcpDuplexHost != null)
            {
                _tcpDuplexHost.Dispose();
                _tcpDuplexHost = null;
            }

            if (_httpCustomHost != null)
            {
                _httpCustomHost.Dispose();
                _httpCustomHost = null;
            }
        }
Beispiel #2
0
 public void Dispose()
 {
     if (_host != null)
     {
         _host.Dispose();
         _host = null;
     }
 }
Beispiel #3
0
 private void Dispose(bool disposing)
 {
     if (disposing && host != null)
     {
         host.Dispose();
         host = null;
     }
 }
Beispiel #4
0
        //  tcpex://localhost:9096/WDAltMonitor


        static void Main(string[] args)
        {
            StartComponent();

            Console.WriteLine("Press Enter to terminate Zyan server.");

            Console.ReadLine();

            Console.WriteLine("Terminating Zyan server...");

            _znHost.UnregisterComponent(_zsName);
            _znHost.Dispose();

            Console.WriteLine("Zyan server terminated.");
        }
Beispiel #5
0
 private void StopComponent()
 {
     _znHost.UnregisterComponent(_zsName);
     _znHost.Dispose();
     _znHost = null;
 }