Class ServiceResolutionMode
Specifies when the system should build the dependency graph.
Inheritance
System.Object
ServiceResolutionMode
Namespace: Solti.Utils.DI.Interfaces
Assembly: Solti.Utils.DI.Interfaces.dll
Syntax
public sealed class ServiceResolutionMode : Enum
Fields
AOT
Ahead Of Time
Declaration
public const ServiceResolutionMode AOT
Field Value
Type | Description |
---|---|
ServiceResolutionMode |
Remarks
The assembled resolver function roughly looks like this:
new Dependant(new Dependency())
JIT
Just In Time
Declaration
public const ServiceResolutionMode JIT
Field Value
Type | Description |
---|---|
ServiceResolutionMode |
Remarks
The assembled resolver function roughly looks like this:
new Dependant(scope.Get(typeof(Dependency)))
This approach is useful when you're planning to mock the IInjector invocations but not recommended in production due to its performance impact.
value__
Declaration
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |