Exemplo n.º 1
0
 public Logger2(Application app)
 {
     _LoggerDao = new LoggerDao2
     {
         App = app
     };
 }
Exemplo n.º 2
0
        private static ILogger GetLoggerInternal(Application app)
        {
            lock (LOGGER_DICTIONARY_LOCK)
            {

                if (_Loggers == null)
                {
                    _Loggers = new Dictionary<string, Logger>();
                }

                if (!_Loggers.ContainsKey(app.Key))
                {
                    _Loggers[app.Key] = new Logger(app) {ConnectionString = ConnectionString};
                }
                return _Loggers[app.Key];
            }
        }
Exemplo n.º 3
0
        private static ILogger2 GetLoggerInternal(Application app)
        {
            lock (_LoggerDictionaryLock)
            {
                if (_Loggers == null)
                {
                    _Loggers = new Dictionary<string, Logger2>();
                }

                if (!_Loggers.ContainsKey(app.Key))
                {
                    _Loggers[app.Key] = new Logger2(app) {
                        ConnectionString = ConnectionString
                    };
                }
                return _Loggers[app.Key];
            }
        }
Exemplo n.º 4
0
 public static ILogger2 GetLogger(Application app)
 {
     return GetLoggerInternal(app);
 }