Skip to content

)} )}

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

  1. public IContainerRegistry RegisterScoped(Type type, Func<IContainerProvider, object> factoryMethod)

  2. public IContainerRegistry RegisterScoped(Type from, Type to)

  3. public IContainerRegistry RegisterScoped(Type type, Func<object> factoryMethod)

1. Overload

public IContainerRegistry RegisterScoped(Type type, Func<IContainerProvider, object> factoryMethod)

View source

Inherited documentation

These docs were inherited from IContainerRegistry. The member doesn't override them on this type.

Parameters

NameTypeDescription
typeType--
factoryMethodFunc--

Returns: IContainerRegistry

2. Overload

public IContainerRegistry RegisterScoped(Type from, Type to)

View source

Inherited documentation

These docs were inherited from IContainerRegistry. The member doesn't override them on this type.

Parameters

NameTypeDescription
fromType--
toType--

Returns: IContainerRegistry

3. Overload

public IContainerRegistry RegisterScoped(Type type, Func<object> factoryMethod)

View source

Inherited documentation

These docs were inherited from IContainerRegistry. The member doesn't override them on this type.

Parameters

NameTypeDescription
typeType--
factoryMethodFunc--

Returns: IContainerRegistry