然后不希望邮件组件成为全局单例,可以如下设置。 Adding Registrations to a Lifetime Scope. Autofac 允许你在创建生命周期时添加“on the fly”。
確定! 回上一頁