コード例 #1
0
        public void ShutdownLogServer()
        {
            if (server != null)
            {
                server.Dispose();
                server = null;
            }

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