SplatContainerExtension.RegisterScoped(Type, Func) method¶
Defined in
Type: SplatContainerExtension
Namespace: Splat.Prism
Assembly: Splat.Prism.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Overloads¶
-
public IContainerRegistry RegisterScoped(Type type, Func<IContainerProvider, object> factoryMethod) -
public IContainerRegistry RegisterScoped(Type from, Type to) -
public IContainerRegistry RegisterScoped(Type type, Func<object> factoryMethod)
1. Overload¶
public IContainerRegistry RegisterScoped(Type type, Func<IContainerProvider, object> factoryMethod)
Inherited documentation
These docs were inherited from IContainerRegistry. The member doesn't override them on this type.
Parameters
| Name | Type | Description |
|---|---|---|
type | Type | -- |
factoryMethod | Func | -- |
Returns: IContainerRegistry
2. Overload¶
public IContainerRegistry RegisterScoped(Type from, Type to)
Inherited documentation
These docs were inherited from IContainerRegistry. The member doesn't override them on this type.
Parameters
| Name | Type | Description |
|---|---|---|
from | Type | -- |
to | Type | -- |
Returns: IContainerRegistry
3. Overload¶
public IContainerRegistry RegisterScoped(Type type, Func<object> factoryMethod)
Inherited documentation
These docs were inherited from IContainerRegistry. The member doesn't override them on this type.
Parameters
| Name | Type | Description |
|---|---|---|
type | Type | -- |
factoryMethod | Func | -- |
Returns: IContainerRegistry