Tag: autofac
All the articles with the tag "autofac".
Upcoming decorator enhancements in Autofac 4.9
Published:8 min readAutofac 4.9 introduces new overloads of the existing decorator registration methods that allow for implicit ordering and conditional decoration of services using registration order, as well as support for open-generic registrations and relationship types.
Introducing the Autofac integration for Service Fabric
Published:11 min readThe Autofac.ServiceFabric integration provides lifetime scoping support for Service Fabric services. It uses DynamicProxy interception and custom factory registration classes to track the lifetime of the services within a nested Autofac lifetime scope. This allows for disposal tracking and instance sharing for the service.
Autofac 4.0.0 is in the wild
Published:10 min readAutofac 4.0.0 is the latest version of Autofac and supports .NET Standard 1.1 which includes .NET Core, .NET Framework 4.5, Mono/Xamarin Platforms, Universal Windows Platform 10, Windows 8, and Windows Phone 8.1. It also supports Microsoft's DI abstraction which allows Autofac to integrate with other frameworks such as ASP.NET Core. Issues should be raised in the relevant GitHub repository.
Autofac packages for Visual Studio 2015 release
Published:3 min readAutofac packages for Visual Studio 2015 have been released, with versioning and naming changes to better align with DNX. Documentation is available on the Autofac website.
Autofac 4.0 alpha1 for ASP.NET 5.0 beta3
Published:9 min readAutofac 4.0 alpha1 for ASP.NET 5.0 beta3 is now available on NuGet and can be used with Visual Studio 2015 CTP 6. This version supports the Core CLR without introducing breaking changes, and provides a single integration for the entire web stack. It also includes an Autofac module to encapsulate dependencies. Using this release, developers will be able to create a Web API controller and inject the dependencies they need.
OWIN support for the Web API 2 and MVC 5 integrations in Autofac
Published:5 min readAutofac has recently released pre-release packages for OWIN support for Web API and MVC 5 integrations. These packages enable dependency injection for OWIN middleware components, and extend the Autofac lifetime scope from the OWIN pipeline into the MVC and Web API integrations.
Using Autofac with Self Hosted WCF Services in a Windows Service
Published:5 min readThis article offers an approach to wiring up Autofac with WCF Self Hosting in a Windows Service. It describes creating an Autofac module, an IServiceHostInitializer interface and base implementation, and a ServiceBootstrapper to register and open the service hosts.
Fluent interface for Filter Overrides in the Autofac MVC and Web API integrations
Published:4 min readAutofac now supports overriding filters using the fluent registration API for MVC 5 and Web API 2. This feature is available starting at 3.1.0 of the Autofac.WebApi2 and Autofac.Mvc5 packages on NuGet, and allows for you to add global filters but exclude some from specific actions or controllers.
New features in the Autofac 3.1.0 updates
Published:4 min readAutofac 3.1.0 has been released and includes a number of updates, such as separate XML configuration packages, additional lifetime scopes for request based registrations, Web API HttpRequestMessage injection, and more useful assembly descriptions.
Autofac 3.0.2 update pushed to NuGet
Published:2 min readOn April 8th, 2013, we pushed Autofac 3.0.2 and some minor updates to the core Autofac package and a few of the integration packages to NuGet. These updates include a mix of enhancements and bug fixes across different packages such as SignalR Integration 3.0.1, Web API Integration 3.0.1 and Multitenant Support 3.0.2 and Castle DynamicProxy Integration 3.0.2.