dependency injection - How to disable resolving of un-registered types in simpleInjector? -
i trying use simpleinjector di container nservicebus. while trying so, ran problem caused resolving of un-registered types. need make sure un-registered types not resolved simpleinjector.
i did try below code, didn't good.
_context.resolveunregisteredtype += _context_resolveunregisteredtype; void _context_resolveunregisteredtype(object sender, unregisteredtypeeventargs e) { e.register(()=> null); }
any ideas/suggestions welcome.
Comments
Post a Comment