Exemple #1
0
 protected void LogMessage(string content, string format, object[] args)
 {
     NHibernateTcpServer.GetInstance().AddMessageToQueue(new Message()
     {
         DateTime  = DateTime.UtcNow,
         Type      = _type,
         Content   = content,
         Arguments = args,
         Format    = format,
         //Url = HttpRequest?.Url.ToString(),
         SessionId = AbstractLogger.SessionId,
         Frames    = GetStackTrace()
     });
 }
Exemple #2
0
        public static NHibernateTcpServer GetInstance()
        {
            if (_instance == null)
            {
                lock (_staticLock)
                {
                    if (_instance == null)
                    {
                        _instance = new NHibernateTcpServer();
                    }
                }
            }

            return(_instance);
        }