Namespace ToSic.Sys.DI
Classes
- Generator<TService>
Lazy generator to create multiple new services/objects of a specific type.
- Generator<TService, TOptions>
Lazy generator to create multiple new services/objects of a specific type.
- LazyImplementation<TService>
Enables lazy requesting of objects - won't be available until needed. This is a classic plain-vanilla implementation of Lazy for ServiceProviders.
Note that most code in the ToSic Namespace will prefer LazySvc<TService>
- LazySvc<TService>
Helps us create lazy Service objects.
- ServiceSwitcherScoped<T>
Same as the ServiceSwitcher<T> but must have another name so we can register it as scoped.
- ServiceSwitcherSingleton<T>
Similar to the ServiceSwitcher<T> but special.
- ServiceSwitcher<T>
Service to pick one of various services which implement ISwitchableService
Interfaces
- ISwitchableService
This describes a service which may have multiple implementations, and will be picked by the ServiceSwitcher<T>