Class InjectorDotNetBackend
The default IDiProvider implementation using the Solti.Utils.DI.ServiceCollection and Solti.Utils.DI.ScopeFactory classes.
Implements
Inherited Members
Namespace: Solti.Utils.Rpc
Assembly: Solti.Utils.Rpc.Server.dll
Syntax
public class InjectorDotNetBackend : IDiProvider
Properties
ScopeOptions
The configuration applied on each created scope.
Declaration
public ScopeOptions ScopeOptions { get; set; }
Property Value
Type | Description |
---|---|
Solti.Utils.DI.Interfaces.ScopeOptions |
Services
Services from which the scopes will be created.
Declaration
public IServiceCollection Services { get; }
Property Value
Type | Description |
---|---|
Solti.Utils.DI.Interfaces.IServiceCollection |
Methods
CreateFactory(CancellationToken)
Creates a new Solti.Utils.DI.Interfaces.IScopeFactory instance against the given Services.
Declaration
public IScopeFactory CreateFactory(CancellationToken cancellation)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellation |
Returns
Type | Description |
---|---|
Solti.Utils.DI.Interfaces.IScopeFactory |