Beispiel #1
0
        public void InitializingTwoProvidersDoesNotThrow()
        {
            var settings  = new Log4NetSettings();
            var providerA = new Log4NetProvider();
            var providerB = new Log4NetProvider();

            providerA.Initialize(settings);
            providerB.Initialize(settings);
        }
Beispiel #2
0
        private static Log4NetProvider CreateProvider(XDocument configuration)
        {
            var settings = new Log4NetSettings {
                RootRepository = Guid.NewGuid().ToString()
            };
            var provider = new Log4NetProvider(x => configuration, x => true);

            provider.Initialize(settings);
            return(provider);
        }
Beispiel #3
0
        public void InitializingTwoProvidersDoesNotThrow()
        {
            var settings = new Log4NetSettings {
                RootRepository = Guid.NewGuid().ToString()
            };
            var providerA = new Log4NetProvider();
            var providerB = new Log4NetProvider();

            providerA.Initialize(settings);
            providerB.Initialize(settings);
        }