UnregisteredTypeEventArgs Methods

Simple Injector
Methods

  NameDescription
Public methodRegister(FuncObject)
Registers a FuncTResult delegate that allows creation of instances of the type expressed by the UnregisteredServiceType for this and future requests. The delegate will be caches and future requests will directly call that delegate.
Public methodRegister(Expression)
Registers an Expression that describes the creation of instances of the type expressed by the UnregisteredServiceType for this and future requests. The delegate will be cached and future requests will directly use that expression or the compiled delegate.
Public methodRegister(Registration)
Registers a Registration that describes the creation of instances of the type expressed by the UnregisteredServiceType for this and future requests. The registration will be cached and future requests will directly call unon that registration, the expression that it generates or the delegate that gets compiled from that expression.
Top
See Also

Reference