Table of Contents

Class LazyImplementation<TService>

Namespace
ToSic.Lib.DI
Assembly
ToSic.Lib.Core.dll

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
Lazy<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)

Parameters

sp IServiceProvider