Esempio n. 1
0
        public FactorySubContainerBinderBase(
            DiContainer bindContainer, BindInfo bindInfo, FactoryBindInfo factoryBindInfo, object subIdentifier)
        {
            FactoryBindInfo = factoryBindInfo;
            SubIdentifier   = subIdentifier;
            BindInfo        = bindInfo;
            BindContainer   = bindContainer;

            // Reset so we get errors if we end here
            factoryBindInfo.ProviderFunc = null;
        }
Esempio n. 2
0
 public FactoryFromBinderBase(
     DiContainer bindContainer, Type contractType, BindInfo bindInfo, FactoryBindInfo factoryBindInfo)
     : base(bindInfo)
 {
     FactoryBindInfo = factoryBindInfo;
     BindContainer   = bindContainer;
     ContractType    = contractType;
     factoryBindInfo.ProviderFunc =
         (container) => new TransientProvider(
             ContractType, container, BindInfo.Arguments, BindInfo.ContextInfo, BindInfo.ConcreteIdentifier,
             BindInfo.InstantiatedCallback);
 }
 public FactoryArgumentsToChoiceBinder(
     DiContainer bindContainer, BindInfo bindInfo, FactoryBindInfo factoryBindInfo)
     : base(bindContainer, bindInfo, factoryBindInfo)
 {
 }
Esempio n. 4
0
 public FactorySubContainerBinder(
     DiContainer bindContainer, BindInfo bindInfo, FactoryBindInfo factoryBindInfo, object subIdentifier)
     : base(bindContainer, bindInfo, factoryBindInfo, subIdentifier)
 {
 }
Esempio n. 5
0
 public FactoryFromBinderUntyped(
     DiContainer bindContainer, Type contractType, BindInfo bindInfo, FactoryBindInfo factoryBindInfo)
     : base(bindContainer, contractType, bindInfo, factoryBindInfo)
 {
 }
Esempio n. 6
0
 public FactoryFromBinder(
     DiContainer container, BindInfo bindInfo, FactoryBindInfo factoryBindInfo)
     : base(container, typeof(TContract), bindInfo, factoryBindInfo)
 {
 }
Esempio n. 7
0
 public FactoryToChoiceBinder(
     DiContainer container, BindInfo bindInfo, FactoryBindInfo factoryBindInfo)
     : base(container, bindInfo, factoryBindInfo)
 {
 }