Table of Contents

Class ServiceSwitcherScoped<T>

Namespace
ToSic.Sys.DI
Assembly
ToSic.Sys.Core.dll

Same as the ServiceSwitcher<T> but must have another name so we can register it as scoped.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public class ServiceSwitcherScoped<T> : ServiceSwitcher<T>, IHasLog where T : ISwitchableService

Type Parameters

T
Inheritance
object
ServiceSwitcherScoped<T>
Implements
Inherited Members

Constructors

ServiceSwitcherScoped(IEnumerable<T>)

Same as the ServiceSwitcher<T> but must have another name so we can register it as scoped.

public ServiceSwitcherScoped(IEnumerable<T> allServices)

Parameters

allServices IEnumerable<T>