Пример #1
0
        private static void InitializeContainer()
        {
            LogFileSettings settings = LogFileSection.GetAsSettings();

            // setup the container here... grrr... we're duplicating this!
            IoC.Initialize(new SimpleDependencyResolver()
                           .Register <ILogFactory>(new NLogFactory(settings))
                           );
        }
Пример #2
0
 public NLogFactory()
     : this(LogFileSection.GetAsSettings())
 {
 }