Initial Commit
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
namespace Zenject
|
||||
{
|
||||
[NoReflectionBaking]
|
||||
public class ScopeConcreteIdArgConditionCopyNonLazyBinder : ConcreteIdArgConditionCopyNonLazyBinder
|
||||
{
|
||||
public ScopeConcreteIdArgConditionCopyNonLazyBinder(BindInfo bindInfo)
|
||||
: base(bindInfo)
|
||||
{
|
||||
}
|
||||
|
||||
public ConcreteIdArgConditionCopyNonLazyBinder AsCached()
|
||||
{
|
||||
BindInfo.Scope = ScopeTypes.Singleton;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ConcreteIdArgConditionCopyNonLazyBinder AsSingle()
|
||||
{
|
||||
BindInfo.Scope = ScopeTypes.Singleton;
|
||||
BindInfo.MarkAsUniqueSingleton = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Note that this is the default so it's not necessary to call this
|
||||
public ConcreteIdArgConditionCopyNonLazyBinder AsTransient()
|
||||
{
|
||||
BindInfo.Scope = ScopeTypes.Transient;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user