Exemple #1
0
        public global::System.Object Get(global::System.Type requestedType, global::DpdtInject.Injector.Src.CustomScope.CustomScopeObject scope)
        {
            var result = _typeContainerGet.GetGetObject(
                requestedType,
                new global::DpdtInject.Injector.Src.RContext.ResolutionRequest <CarcassCluster>(
                    false,
                    requestedType,
                    scope
                    )
                );

            return(result);
        }
Exemple #2
0
 public T Get <T>(global::DpdtInject.Injector.Src.CustomScope.CustomScopeObject customScope)
 {
     if (this is global::DpdtInject.Injector.Src.IResolution <T> r)
     {
         return(r.Get(
                    new global::DpdtInject.Injector.Src.RContext.ResolutionRequest <CarcassCluster, T>(
                        false,
                        customScope
                        )
                    ));
     }
     else
     {
         return(RaiseNoBindingAvailable <T>());
     }
 }
Exemple #3
0
 public global::System.Collections.Generic.List <T> GetAll <T>(global::DpdtInject.Injector.Src.CustomScope.CustomScopeObject customScope)
 {
     if (this is global::DpdtInject.Injector.Src.IResolution <T> r)
     {
         return(r.GetAll(
                    new global::DpdtInject.Injector.Src.RContext.ResolutionRequest <CarcassCluster, T>(
                        true,
                        customScope
                        )
                    ));
     }
     else
     {
         throw new global::DpdtInject.Injector.Src.Excp.DpdtException(
                   global::DpdtInject.Injector.Src.Excp.DpdtExceptionTypeEnum.NoBindingAvailable,
                   $"No bindings available for {typeof(T).FullName}",
                   typeof(T).FullName
                   );
     }
 }
Exemple #4
0
        public global::System.Collections.Generic.IEnumerable <global::System.Object> GetAll(global::System.Type requestedType, global::DpdtInject.Injector.Src.CustomScope.CustomScopeObject scope)
        {
            var result = _typeContainerGetAll.GetGetObject(
                requestedType,
                new global::DpdtInject.Injector.Src.RContext.ResolutionRequest <CarcassCluster>(
                    true,
                    requestedType,
                    scope
                    )
                );

            return((global::System.Collections.Generic.IEnumerable <global::System.Object>)result);
        }