Class 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>
[InternalApi_DoNotUse_MayChangeWithoutNotice]
public class LazyImplementation<TService> : Lazy<TService>
Type Parameters
TService
- Inheritance
-
objectLazy<TService>LazyImplementation<TService>
- Inherited Members
Constructors
LazyImplementation(IServiceProvider)
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>
public LazyImplementation(IServiceProvider sp)