Ejemplo n.º 1
0
 public CustomScopeReferenceBinder(
     BindScope owner, string identifier,
     DiContainer container, SingletonProviderMap singletonMap, PrefabSingletonProviderMap prefabSingletonMap)
     : base(container, identifier, singletonMap, prefabSingletonMap)
 {
     _owner = owner;
 }
Ejemplo n.º 2
0
 public SingletonInstanceHelper(
     SingletonProviderMap singletonProviderMap,
     PrefabSingletonProviderMap prefabSingletonProviderMap)
 {
     _prefabSingletonProviderMap = prefabSingletonProviderMap;
     _singletonProviderMap       = singletonProviderMap;
 }
Ejemplo n.º 3
0
 public ReferenceBinder(
     DiContainer container, string identifier,
     SingletonProviderMap singletonMap, PrefabSingletonProviderMap prefabSingletonMap)
     : base(container, identifier)
 {
     _singletonMap       = singletonMap;
     _prefabSingletonMap = prefabSingletonMap;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 10
0
 internal BindScope(DiContainer container, SingletonProviderMap singletonMap, PrefabSingletonProviderMap prefabSingletonMap)
 {
     _container          = container;
     _singletonMap       = singletonMap;
     _prefabSingletonMap = prefabSingletonMap;
 }