AutofacTypeRegistrar.

RegisterLazy(Type, Func<object>) Method

Summary

Registers a lazy factory for a service.

Syntax

public void RegisterLazy(Type service, Func<object> factory)

Parameters

Name Type Description
service Type The service type.
factory Func<object> The factory function.

Return Value

Type Description
void