0

在我的容器的构建中,我想通过配置文件提供这些行之一

  //-------------------------------------------------------------------------
  //NOTE: Depending on the PerformanceCategoryDefine in Configuration file
  // -will depend on which engine should be used -- choose one only
  //

  //builder.RegisterType<RemoteFxNetworkTransmitEngine>().As<IPerfCounterCategoryNameTransmitEngine>();

  //builder.RegisterType<TerminalServicesSessionTransmitEngine>().As<IPerfCounterCategoryNameTransmitEngine>();

  //---------------------------

使用此处的示例:http: //docs.autofac.org/en/latest/configuration/modules.html#encapsulated-configuration

但它相当有限,并不是一个完整的例子。出于某种原因,我也无法找到 ConfigurationSettingsReader 类。

我正在使用 Autofac 4.1 版,因为这个以前的问题现在已经超过 5 年了,我认为它不再相关。

4

0 回答 0