Exemple #1
0
 private T GetFromLocalUnsafely <T>(
     global::DpdtInject.Injector.Src.RContext.IResolutionTarget resolutionTarget,
     global::System.String constructorArgument
     )
 {
     return(((global::DpdtInject.Injector.Src.IResolution <T>) this).Get(
                new global::DpdtInject.Injector.Src.RContext.ResolutionRequest <CarcassCluster, T>(
                    resolutionTarget,
                    constructorArgument
                    )
                ));
 }
Exemple #2
0
        private T GetFromParent <T>(
            global::DpdtInject.Injector.Src.RContext.IResolutionTarget resolutionTarget,
            global::System.String constructorArgument
            )
        {
            if (_parentCluster is null)
            {
                RaiseNoBindingAvailable <T>();
            }

            return(_parentCluster.GetToChild <T>(
                       new global::DpdtInject.Injector.Src.RContext.ResolutionRequest <CarcassCluster, T>(
                           resolutionTarget,
                           constructorArgument
                           )
                       ));
        }