示例#1
0
            public void Run()
            {
                try
                {
                    if (_context.Verbose)
                    {
                        _ = _consoleWindowFactory.New();
                    }

                    if (_context.Source != null)
                    {
                        _writer.WriteLine("Connecting to logging server.. ");
                        var logServer = _logServerFactory.New(_webSocketServerFactory, _writer, _context);
                        logServer.Start(new List <IWebSocketConnection>());
                        _writer.WriteLine("Logging Server Started.");
                    }
                    else
                    {
                        _writer.WriteLine("Failed to start logging server: Invalid or missing Logging Data Source.");
                    }
                }
                catch (Exception ex)
                {
                    _writer.WriteLine($"Logging Server OnError, Error details:{ex.Message}");
                }
            }
示例#2
0
            public void Run()
            {
                if (_context.Verbose)
                {
                    _ = _consoleWindowFactory.New();
                }

                var logServer = _logServerFactory.New(_webSocketServerFactory, _writer, _context);

                logServer.Start(new List <IWebSocketConnection>());
            }