public ProviderInfo( SingletonTypes type, CachedProvider provider, object singletonSpecificId, List <TypeValuePair> arguments) { Type = type; Provider = provider; SingletonSpecificId = singletonSpecificId; Arguments = arguments; }
public ProviderInfo( SingletonTypes type, CachedProvider provider, object singletonSpecificId, List<TypeValuePair> arguments) { Type = type; Provider = provider; SingletonSpecificId = singletonSpecificId; Arguments = arguments; }
public List <object> GetAllInstancesWithInjectSplit( InjectContext context, List <TypeValuePair> args, out Action injectAction) { Assert.IsNotNull(context); CachedProvider provider; if (!_providerMap.TryGetValue(context.MemberType, out provider)) { provider = new CachedProvider(_creator); _providerMap.Add(context.MemberType, provider); } return(provider.GetAllInstancesWithInjectSplit( context, args, out injectAction)); }
public void GetAllInstancesWithInjectSplit( InjectContext context, List <TypeValuePair> args, out Action injectAction, List <object> buffer) { Assert.IsNotNull(context); CachedProvider provider; #if ZEN_MULTITHREADING lock (_locker) #endif { if (!_providerMap.TryGetValue(context.MemberType, out provider)) { provider = new CachedProvider(_creator); _providerMap.Add(context.MemberType, provider); } } provider.GetAllInstancesWithInjectSplit( context, args, out injectAction, buffer); }