Exemple #1
0
        internal void Initialize(bool throwIfRequiredPropertiesNotFoundInDefaultConfig)
        {
            if (currentLog == null || currentLog.IsNull)
            {
                DefaultConfiguration.SetProperties(this, false);
                currentLog = CreateLogger(this.logType);
                //if (this.logType == Naizari.Logging.LogType.MSSql)
                //{
                //    EventManager.Current.EventStoreType = EventStoreTypes.MSSql.ToString();
                //}
                //else
                //{
                //    EventManager.Current.EventStoreType = EventStoreTypes.SQLite.ToString();
                //}

                currentLog.Initialize();
                DefaultConfiguration.SetPropertiesByProxy(currentLog, this, throwIfRequiredPropertiesNotFoundInDefaultConfig);
            }

            SingletonHelper.SetApplicationProvider <ILogger>(currentLog, true);
            WireNotificationEvents(currentLog);
        }
Exemple #2
0
        //static Dictionary<string, BoxResponse> staticTemplateResponses;
        //static Dictionary<string, Control> loadedControls;

        static BoxServer()
        {
            //staticTemplateResponses = new Dictionary<string, BoxResponse>();
            SingletonHelper.SetApplicationProvider <BoxResponses>(new BoxResponses(), false);
        }