public ConditionCopyNonLazyBinder FromScriptableObjectResource(string resourcePath) { BindingUtil.AssertIsValidResourcePath(resourcePath); BindingUtil.AssertIsInterfaceOrScriptableObject(ContractType); ProviderFunc = (container) => new ScriptableObjectResourceProvider( resourcePath, ContractType, container, new List <TypeValuePair>(), false, null, BindInfo.InstantiatedCallback); return(this); }
ScopeConcreteIdArgConditionCopyNonLazyBinder FromScriptableObjectResourceInternal( string resourcePath, bool createNew) { BindingUtil.AssertIsValidResourcePath(resourcePath); BindingUtil.AssertIsInterfaceOrScriptableObject(AllParentTypes); BindInfo.RequireExplicitScope = true; SubFinalizer = new ScopableBindingFinalizer( BindInfo, (container, type) => new ScriptableObjectResourceProvider( resourcePath, type, container, BindInfo.Arguments, createNew, BindInfo.ConcreteIdentifier, BindInfo.InstantiatedCallback)); return(new ScopeConcreteIdArgConditionCopyNonLazyBinder(BindInfo)); }