Provides data for and interaction with the ResolveUnregisteredType event of the Container. An observer can check the UnregisteredServiceType to see whether the unregistered type can be handled. The Register(FuncObject) method can be called to register a FuncTResult delegate that allows creation of instances of the unregistered for this and future requests.
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 4.9.1
public class UnregisteredTypeEventArgs : EventArgs
Public Class UnregisteredTypeEventArgs Inherits EventArgs
Thetype exposes the following members.
Gets a value indicating whether the event represented by this instance has been handled. This property will return true when Register(FuncObject) has been called on this instance.
Gets the unregistered service type that is currently requested.
Registers an UnregisteredServiceType for this and future requests. The delegate will be cached and future requests will directly use that expression or the compiled delegate.that describes the creation of instances of the type expressed by the
Registers a 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.that describes the creation of instances of the type expressed by the