Autofac官方文档(二)【新版本】

来源:互联网 发布:爱av淘宝 编辑:程序博客网 时间:2024/06/04 19:01

Autofac和集成软件包的发行说明

  • Core components
    • Autofac
    • Autofac.Configuration
  • Integration libraries

    • ASP.NET

      • Web Forms
      • MVC
      • Web API
      • SignalR
      • RIA/Domain Services
      • OWIN
        • OWIN Core
        • OWIN / Web API
        • OWIN / MVC
    • WCF

    • MEF
    • Common Service Locator
    • Enterprise Library 5 Configurator
    • NHibernate
    • Moq
    • FakeItEasy
    • MvvmCross
  • Extended features

    • Aggregate Services
    • Attribute Metadata
    • Dynamic Proxy / Interception
    • Multitenant Applications
    • Multitenant WCF Services

从Autofac 3.x升级到4.x

Autofac 4.x版本增加了对核心Autofac以及几个集成软件包的.NET Core支持。

一般来说,公共API在升级期间保持稳定,但内部变化是因为.NET Core中的反射和其他一些事情稍微有些不同。

以下是Autofac 3.x和4.x版本之间已知差异的列表,其中包括集成/附加软件包的更改:

以下NuGet包被重新命名:    Autofac.Extras.Attributed => Autofac.Extras.AttributeMetadata    Autofac.Extras.Multitenant => Autofac.Multitenant    Autofac.Extras.Multitenant.Wcf => Autofac.Multitenant.Wcf    Autofac.Extras.DynamicProxy2 => Autofac.Extras.DynamicProxy所有软件包的最小目标框架已经增加到.NET 4.5并且正在使用.NET 4.5安全模型(例如,不再有AllowPartiallyTrustedCallersAttribute)。Autofac.Configuration包现在使用Microsoft.Extensions.Configuration格式的配置文件,而不是旧的XML格式。您可以在配置页面上阅读更多关于此的信息。以下集成软件包已移至维护模式(仅修复,无新功能,无活动):    Autofac.Extras.NHibernate    Autofac.Extras.EnterpriseLibraryConfigurator    Autofac.Integration.DomainServices
原创粉丝点击