c# - Autofac equivalent of StructureMap's WhatDoIHave() -
does autofac have analog structuremap's whatdoihave()
method? i'd able see visual representation of services registered in container. i've looked @ autofac's documentation , can't find similar.
if such method not exist, there technical issue autofac makes difficult implement or has there not been interest in providing it?
you can use registrationfor
method of icomponentregistry
registered service. can access component registry componentregistry
method of icomponentcontext
(ie : ilifetimescope
icontainer
)
icontainer container = builder.build(); container.componentregistry.registrationfor(new typedservice(typeof(ixservice));
Comments
Post a Comment