public SubContainerInstallerBindingFinalizer(
     BindInfo bindInfo, Type installerType, object subIdentifier)
     : base(bindInfo)
 {
     _subIdentifier = subIdentifier;
     _installerType = installerType;
 }
 public SubContainerMethodBindingFinalizer(
     BindInfo bindInfo, Action<DiContainer> installMethod, object subIdentifier)
     : base(bindInfo)
 {
     _subIdentifier = subIdentifier;
     _installMethod = installMethod;
 }
 public PrefabBindingFinalizer(
     BindInfo bindInfo,
     GameObjectBindInfo gameObjectBindInfo,
     UnityEngine.Object prefab)
     : base(bindInfo)
 {
     _gameObjectBindInfo = gameObjectBindInfo;
     _prefab = prefab;
 }
 public PrefabResourceBindingFinalizer(
     BindInfo bindInfo,
     GameObjectBindInfo gameObjectBindInfo,
     string resourcePath)
     : base(bindInfo)
 {
     _gameObjectBindInfo = gameObjectBindInfo;
     _resourcePath = resourcePath;
 }
 public ScopableBindingFinalizer(
     BindInfo bindInfo,
     SingletonTypes singletonType, object singletonSpecificId,
     Func<DiContainer, Type, IProvider> providerFactory)
     : base(bindInfo)
 {
     _singletonType = singletonType;
     _providerFactory = providerFactory;
     _singletonSpecificId = singletonSpecificId;
 }
 public SubContainerPrefabResourceBindingFinalizer(
     BindInfo bindInfo,
     GameObjectBindInfo gameObjectBindInfo,
     string resourcePath,
     object subIdentifier)
     : base(bindInfo)
 {
     _gameObjectBindInfo = gameObjectBindInfo;
     _subIdentifier = subIdentifier;
     _resourcePath = resourcePath;
 }
 public SubContainerPrefabBindingFinalizer(
     BindInfo bindInfo,
     GameObjectBindInfo gameObjectBindInfo,
     UnityEngine.Object prefab,
     object subIdentifier)
     : base(bindInfo)
 {
     _gameObjectBindInfo = gameObjectBindInfo;
     _prefab = prefab;
     _subIdentifier = subIdentifier;
 }
Example #8
0
 public SingleProviderBindingFinalizer(
     BindInfo bindInfo, Func <DiContainer, Type, IProvider> providerFactory)
     : base(bindInfo)
 {
     _providerFactory = providerFactory;
 }
Example #9
0
 public FactoryFromBinder(BindInfo bindInfo, Type factoryType, BindFinalizerWrapper finalizerWrapper)
     : base(bindInfo, factoryType, finalizerWrapper)
 {
 }
Example #10
0
 public SignalBinder(
     BindInfo bindInfo, SignalSettingsOld signalSettings)
     : base(bindInfo)
 {
     _signalSettings = signalSettings;
 }
 public ConventionFilterTypesBinder DerivingFrom(Type parentType)
 {
     BindInfo.AddTypeFilter((type) => type.DerivesFrom(parentType));
     return(this);
 }
 public FromBinderNonGeneric(
     DiContainer bindContainer, BindInfo bindInfo,
     BindStatement bindStatement)
     : base(bindContainer, bindInfo, bindStatement)
 {
 }
Example #13
0
 public FactoryFromBinder(
     BindInfo bindInfo, FactoryBindInfo factoryBindInfo)
     : base(bindInfo, factoryBindInfo)
 {
 }
 public SingleProviderBindingFinalizer(
     BindInfo bindInfo, Func<DiContainer, Type, IProvider> providerFactory)
     : base(bindInfo)
 {
     _providerFactory = providerFactory;
 }
 public ConventionFilterTypesBinder InNamespaces(IEnumerable <string> namespaces)
 {
     BindInfo.AddTypeFilter(t => namespaces.Any(n => IsInNamespace(t, n)));
     return(this);
 }
 public ConventionFilterTypesBinder WithSuffix(string suffix)
 {
     BindInfo.AddTypeFilter(t => t.Name.EndsWith(suffix));
     return(this);
 }
 public ConventionFilterTypesBinder Where(Func <Type, bool> predicate)
 {
     BindInfo.AddTypeFilter(predicate);
     return(this);
 }
 public ConventionFilterTypesBinder WithAttributeWhere <T>(Func <T, bool> predicate)
     where T : Attribute
 {
     BindInfo.AddTypeFilter(t => t.HasAttribute <T>() && t.AllAttributes <T>().All(predicate));
     return(this);
 }
 public ConventionFilterTypesBinder WithoutAttribute(Type attribute)
 {
     Assert.That(attribute.DerivesFrom <Attribute>());
     BindInfo.AddTypeFilter(t => !t.HasAttribute(attribute));
     return(this);
 }
Example #20
0
 public ScopeArgBinder(BindInfo bindInfo)
     : base(bindInfo)
 {
 }
Example #21
0
 public ArgumentsBinder(BindInfo bindInfo)
     : base(bindInfo)
 {
 }
 public ConventionFilterTypesBinder WithPrefix(string prefix)
 {
     BindInfo.AddTypeFilter(t => t.Name.StartsWith(prefix));
     return(this);
 }
Example #23
0
 public ScopeBinder(BindInfo bindInfo)
     : base(bindInfo)
 {
 }
 public GameObjectNameGroupNameScopeArgBinder(
     BindInfo bindInfo,
     GameObjectBindInfo gameObjectInfo)
     : base(bindInfo, gameObjectInfo)
 {
 }
Example #25
0
 public FactorySubContainerBinderWithParams(
     BindInfo bindInfo, Type factoryType,
     BindFinalizerWrapper finalizerWrapper, object subIdentifier)
     : base(bindInfo, factoryType, finalizerWrapper, subIdentifier)
 {
 }
Example #26
0
 public ProviderBindingFinalizer(BindInfo bindInfo)
 {
     BindInfo = bindInfo;
 }
Example #27
0
 public SignalBinderWithId(
     BindInfo bindInfo, SignalSettingsOld signalSettings)
     : base(bindInfo, signalSettings)
 {
 }
Example #28
0
 public ScopeConcreteIdArgConditionCopyNonLazyBinder(BindInfo bindInfo)
     : base(bindInfo)
 {
 }
 public ConventionFilterTypesBinder MatchingRegex(Regex regex)
 {
     BindInfo.AddTypeFilter(t => regex.IsMatch(t.Name));
     return(this);
 }
 public FactorySubContainerBinder(
     DiContainer bindContainer, BindInfo bindInfo, FactoryBindInfo factoryBindInfo, object subIdentifier)
     : base(bindContainer, bindInfo, factoryBindInfo, subIdentifier)
 {
 }
 public FactorySubContainerBinderWithParams(
     BindInfo bindInfo, FactoryBindInfo factoryBindInfo, object subIdentifier)
     : base(bindInfo, factoryBindInfo, subIdentifier)
 {
 }