Interface IScopeFactory
Provides a thread safe way to create new scopes.
Namespace: Solti.Utils.DI.Interfaces
Assembly: Solti.Utils.DI.Interfaces.dll
Syntax
public interface IScopeFactory
Properties
Options
Options applied on the newly created scopes.
Declaration
ScopeOptions Options { get; }
Property Value
Type | Description |
---|---|
ScopeOptions |
Methods
CreateScope(Object)
Creates an independent new scope
Declaration
IInjector CreateScope(object tag = null)
Parameters
Type | Name | Description |
---|---|---|
System.Object | tag | User defined data to be bound to the scope. You can read this value back via the IHasTag interface. |
Returns
Type | Description |
---|---|
IInjector |