public void ShutdownLogServer()
        {
            if (server != null)
            {
                server.Dispose();
                server = null;
            }

            if (logClient != null)
            {
                logClient.Dispose();
                logClient = null;
            }
        }
 public void StartLogServer()
 {
     server = new LocalhostLogServer();
     var logServiceAddress = new IPEndPoint(IPAddress.Parse("127.0.0.1"), LocalhostLogServer.Port);
     logClient = new NetworkClientLogProvider(logServiceAddress);
 }
 public void LogToRealLogServer()
 {
     using (var logClient = new NetworkClientLogProvider("deltaengine.net", 777))
         logClient.Log(new Info("Hello TestWorld from " + Environment.MachineName));
 }