ContainerRegisterInitializer Method

Simple Injector
Overload List

  NameDescription
Public methodRegisterInitializerTService(ActionTService)
Registers an ActionT delegate that runs after the creation of instances that implement or derive from the given TService. Please note that only instances that are created by the container (using constructor injection) can be initialized this way.
Public methodRegisterInitializer(ActionInstanceInitializationData, PredicateInitializerContext)
Registers an ActionT delegate that runs after the creation of instances for which the supplied predicate returns true. Please note that only instances that are created by the container can be initialized this way.
Top
See Also

Reference