一款简单易用的基础网络通讯组件库。

AutofacConfigExtension 类

AutofacConfigExtension

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core.Autofac (在 TouchSocket.Core.Autofac.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public static class AutofacConfigExtension
Inheritance
Object    AutofacConfigExtension

方法

ConfigureContainer 配置容器。
UseAutofacContainer(TouchSocketConfig) 使用AutofacContainer作为容器。
UseAutofacContainer(TouchSocketConfig, ContainerBuilder) 使用AutofacContainer作为容器。

注意:使用此方法,在构建组件时,内部会自行调用Build(ContainerBuildOptions).

UseAutofacContainer(TouchSocketConfig, IContainer) 使用AutofacContainer作为容器。

注意:使用此方法,在构建组件时,内部会直接使用解决器,不再调用Build(ContainerBuildOptions).

参见