Alex Meyer-Gleaves

Introducing the Autofac integration for Service Fabric

on autofac, service fabric

Introduction The dependency injection support in Service Fabric allows you to provide instances for reliable actors, stateful services, and stateless services. Instead of providing a conforming container abstraction the Service Fabric team opted to use a factory based mechanism instead. Factory methods for creating service instances are registered with the runtime via the ActorRuntime.RegisterActorAsync…

Autofac 4.0.0 is in the wild

on autofac, .net core, asp.net

The bleeding edge As Travis mentioned in his earlier blog post the road to 4.0.0 has certainly been an interesting one. This is largely in part because we got on the .NET Core train back in the early DNX days, and as a result experienced all the renames and breaking changes that come…

Autofac 4.0 alpha1 for ASP.NET 5.0 beta3

on autofac, DNX

As Travis outlined in his recent post, we've been hard at work getting Autofac ready for ASP.NET 5.0 and the new Core CLR. The 4.0.0-alpha1 release of the core library and integration for ASP.NET 5.0 are now available on NuGet. The packages can be used with Visual Studio 2015…

OWIN support for the Web API 2 and MVC 5 integrations in Autofac

on autofac, mvc, Web API

Currently, in the both the Web API and MVC frameworks, dependency injection support does not come into play until after the OWIN pipeline has started executing. This is simply a result of the OWIN support being added to both frameworks after their initial release. In fact, the OWIN support in MVC does not yet extend…

Using Autofac with Self Hosted WCF Services in a Windows Service

on autofac, web services

I was recently asked how to best create ServiceHost instances wired up with Autofac when using WCF Self Hosting in a Windows Service. In particular, how to do this in a dynamic way when the WCF services are defined in a separate assembly, without moving the service host configuration into the Windows Service entry point…

Fluent interface for Filter Overrides in the Autofac MVC and Web API integrations

on autofac

The ASP.NET and Web Tools for Visual Studio 2013 introduced filter overrides for MVC 5 and Web API 2. This rather useful feature is only briefly mentioned in the release notes. You can now override which filters apply to a given action method or controller, by specifying an override filter. Override filters specify a…