32 lines
910 B
C#
32 lines
910 B
C#
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;
|
|
}
|
|
}
|
|
}
|