Пример #1
0
 public CustomScopeReferenceBinder(
     BindScope owner, string identifier,
     DiContainer container, SingletonProviderMap singletonMap, PrefabSingletonProviderMap prefabSingletonMap)
     : base(container, identifier, singletonMap, prefabSingletonMap)
 {
     _owner = owner;
 }
Пример #2
0
 public SingletonInstanceHelper(
     SingletonProviderMap singletonProviderMap,
     PrefabSingletonProviderMap prefabSingletonProviderMap)
 {
     _prefabSingletonProviderMap = prefabSingletonProviderMap;
     _singletonProviderMap       = singletonProviderMap;
 }
Пример #3
0
 public ReferenceBinder(
     DiContainer container, string identifier,
     SingletonProviderMap singletonMap, PrefabSingletonProviderMap prefabSingletonMap)
     : base(container, identifier)
 {
     _singletonMap       = singletonMap;
     _prefabSingletonMap = prefabSingletonMap;
 }
Пример #4
0
 public BinderUntyped(
     DiContainer container, Type contractType,
     string identifier, SingletonProviderMap singletonMap, PrefabSingletonProviderMap prefabSingletonMap)
     : base(container, contractType, identifier)
 {
     _singletonMap       = singletonMap;
     _prefabSingletonMap = prefabSingletonMap;
 }
        public PrefabSingletonLazyCreator(
            DiContainer container, PrefabSingletonProviderMap owner, PrefabSingletonId id)
        {
            _container = container;
            _owner     = owner;
            _id        = id;

            Assert.That(id.Prefab != null || id.ResourcePath != null);
        }
        public PrefabSingletonLazyCreator(
            DiContainer container, PrefabSingletonProviderMap owner, PrefabSingletonId id)
        {
            _container = container;
            _owner = owner;
            _id = id;

            Assert.That(id.Prefab != null || id.ResourcePath != null);
        }
        public PrefabSingletonLazyCreator(
            DiContainer container, PrefabSingletonProviderMap owner,
            PrefabSingletonId id)
        {
            _container = container;
            _owner     = owner;
            _id        = id;

            Assert.IsNotNull(id.Prefab);
        }
        public PrefabSingletonLazyCreator(
            DiContainer container, PrefabSingletonProviderMap owner,
            PrefabSingletonId id)
        {
            _container = container;
            _owner = owner;
            _id = id;

            Assert.IsNotNull(id.Prefab);
        }
Пример #9
0
        public DiContainer()
        {
            _singletonMap       = new SingletonProviderMap(this);
            _prefabSingletonMap = new PrefabSingletonProviderMap(this);
            _instantiator       = new Instantiator(this);

            Bind <DiContainer>().To(this);
            Bind <Instantiator>().To(_instantiator);
            Bind <SingletonProviderMap>().To(_singletonMap);
            Bind <PrefabSingletonProviderMap>().To(_prefabSingletonMap);
            Bind <SingletonInstanceHelper>().To(new SingletonInstanceHelper(_singletonMap, _prefabSingletonMap));
        }
Пример #10
0
 internal BindScope(DiContainer container, SingletonProviderMap singletonMap, PrefabSingletonProviderMap prefabSingletonMap)
 {
     _container          = container;
     _singletonMap       = singletonMap;
     _prefabSingletonMap = prefabSingletonMap;
 }