예제 #1
0
 private void LogError(string message)
 {
     if (logger != null)
     {
         logger.Error(message);
     }
 }
예제 #2
0
        public bool Connect(IPAddress address, int port)
        {
            lock (connectionMutex)
            {
                if (client.Connect(address, port))
                {
                    logger.Debug("Connected to FS");
                    return(true);
                }

                logger.Error("Unable to connect to server.");
                return(false);
            }
        }