public ConditionCopyNonLazyBinder FromResource(string resourcePath) { BindingUtil.AssertDerivesFromUnityObject(ContractType); ProviderFunc = (container) => new ResourceProvider(resourcePath, ContractType, true); return(this); }
public ScopeConcreteIdArgConditionCopyNonLazyBinder FromResources(string resourcePath) { BindingUtil.AssertDerivesFromUnityObject(ConcreteTypes); BindInfo.RequireExplicitScope = false; SubFinalizer = new ScopableBindingFinalizer( BindInfo, (_, type) => new ResourceProvider(resourcePath, type, false)); return(new ScopeConcreteIdArgConditionCopyNonLazyBinder(BindInfo)); }