public SingletonLazyCreator( DiContainer container, SingletonProviderMap owner, Type instanceType) { _container = container; _owner = owner; _instanceType = instanceType; }
public CustomScopeReferenceBinder( BindScope owner, DiContainer container, SingletonProviderMap singletonMap) : base(container, singletonMap) { _owner = owner; }
public GenericBinder( DiContainer container, Type contractType, SingletonProviderMap singletonMap) : base(container, contractType) { Assert.That(contractType.IsOpenGenericType(), "Expected open generic type in GenericBinder"); _singletonMap = singletonMap; }
public CustomScopeUntypedBinder( BindScope owner, Type contractType, DiContainer container, SingletonProviderMap singletonMap) : base(container, contractType, singletonMap) { _owner = owner; }
public DiContainer() { _singletonMap = new SingletonProviderMap(this); _instantiator = new Instantiator(this); Bind <DiContainer>().To(this); Bind <Instantiator>().To(_instantiator); }
public SingletonLazyCreator( DiContainer container, SingletonProviderMap owner, Type instanceType, Func <DiContainer, object> createMethod = null) { _container = container; _owner = owner; _instanceType = instanceType; _createMethod = createMethod; }
public DiContainer() { _singletonMap = new SingletonProviderMap(this); Bind <DiContainer>().To(this); // Pass an instance of Instantiator otherwise it will // try to call itself to create itself Bind <Instantiator>().To(new Instantiator(this)); }
public ReferenceBinder(DiContainer container, SingletonProviderMap singletonMap) : base(container) { _singletonMap = singletonMap; }
internal BindScope(DiContainer container, SingletonProviderMap singletonMap) { _container = container; _singletonMap = singletonMap; }
public BinderUntyped( DiContainer container, Type contractType, SingletonProviderMap singletonMap) : base(container, contractType) { _singletonMap = singletonMap; }