C# 与StructureMap';我有什么

C# 与StructureMap';我有什么,c#,autofac,C#,Autofac,Autofac是否有模拟到方法?我希望能够看到容器中当前注册的服务的可视化表示。我看过Autofac的文档,没有找到类似的内容 如果这种方法不存在,Autofac是否存在技术问题,使其难以实施,或者对提供类似的方法没有任何兴趣?您可以使用IComponentRegistry的RegistrationFor方法获得所有已注册的服务。您可以使用IComponentContext的ComponentRegistry方法访问组件注册表(即:aILifetimeScopeaIContainer) 没有技术

Autofac是否有模拟到方法?我希望能够看到容器中当前注册的服务的可视化表示。我看过Autofac的文档,没有找到类似的内容


如果这种方法不存在,Autofac是否存在技术问题,使其难以实施,或者对提供类似的方法没有任何兴趣?

您可以使用
IComponentRegistry
RegistrationFor
方法获得所有已注册的服务。您可以使用
IComponentContext
ComponentRegistry
方法访问组件注册表(即:a
ILifetimeScope
a
IContainer


没有技术问题。Spile有一个Autofac模块,它以与
WhatDoIHave()
结果类似的格式列出注册。我不知道有什么内置的可视化辅助工具。
IContainer container = builder.Build(); 

container.ComponentRegistry.RegistrationFor(new TypedService(typeof(IXService));