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