Exemplo n.º 1
0
        /// <summary>
        ///     Initialize resolver factory
        /// </summary>
        /// <param name="resolverFactory"></param>
        private static void InitResolverFactory(IDependencyResolverFactory resolverFactory)
        {
            lock (SetLocker)
            {
                _dependencyResolverFactory = resolverFactory;
                _dependencyResolverFactory.CreateResolver();
                _resolver = _dependencyResolverFactory.GetResolver();
                _isInited = true;
            }

            Log.Info(String.Format("Configuration complete. DependencyResolverFactory is: {0}", _resolver));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes with the factory.
 /// </summary>
 /// <param name="factory">The factory.</param>
 public static void InitializeWith(IDependencyResolverFactory factory)
 {
     _resolver     = factory.CreateResolver();
     IsInitialized = true;
 }