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() }); }
public static NHibernateTcpServer GetInstance() { if (_instance == null) { lock (_staticLock) { if (_instance == null) { _instance = new NHibernateTcpServer(); } } } return(_instance); }