Class ScopeOptions
Specifies the scope behavior.
Inheritance
System.Object
ScopeOptions
Assembly: Solti.Utils.DI.Interfaces.dll
Syntax
public sealed class ScopeOptions : Object
Constructors
ScopeOptions()
Declaration
Properties
Default
Declaration
public static ScopeOptions Default { get; }
Property Value
ResolutionLockTimeout
Specifies the maximum amount of time to wait to acquire the resolution lock.
Declaration
public TimeSpan ResolutionLockTimeout { get; set; }
Property Value
Type |
Description |
System.TimeSpan |
|
ServiceResolutionMode
Specifies the service resolution mode.
Declaration
public ServiceResolutionMode ServiceResolutionMode { get; set; }
Property Value
StrictDI
Instructs the system to throw if
Declaration
public bool StrictDI { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
SupportsServiceProvider
Specifies whether the created scopes should implement the System.IServiceProvider interface.
Declaration
public bool SupportsServiceProvider { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
<Clone>$()
Declaration
public ScopeOptions <Clone>$()
Returns
Equals(ScopeOptions)
Declaration
public bool Equals(ScopeOptions other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Operators
Equality(ScopeOptions, ScopeOptions)
Declaration
public static bool operator ==(ScopeOptions left, ScopeOptions right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(ScopeOptions, ScopeOptions)
Declaration
public static bool operator !=(ScopeOptions left, ScopeOptions right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<>