InitializerContext Class

An instance of this type will be supplied to the PredicateT delegate that is that is supplied to the RegisterInitializer overload that takes this delegate. This type contains contextual information about the creation and it allows the user to examine the given instance to decide whether the instance should be initialized or not.

SystemObject
  SimpleInjector.AdvancedInitializerContext

Namespace:  SimpleInjector.Advanced
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.3.0

public class InitializerContext

The InitializerContext type exposes the following members.

  NameDescription
Public propertyRegistration

Gets the Registration that is responsible for the initialization of the created instance.

Top

Reference