• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class LazyWrapper<T>

A wrapper which allows requesting via dependency injection and delaying instantiation.

Inheritance
System.Object
LazyWrapper<T>
Namespace: DotNetNuke.DependencyInjection
Assembly: DotNetNuke.DependencyInjection.dll
Syntax
public class LazyWrapper<T> : Lazy<T>
Type Parameters
Name Description
T

The type of service to conditionally instantiate.

Constructors

| Improve this Doc View Source

LazyWrapper(IServiceProvider)

Initializes a new instance of the LazyWrapper<T> class.

Declaration
public LazyWrapper(IServiceProvider serviceProvider)
Parameters
Type Name Description
IServiceProvider serviceProvider

The DI container.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS