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 packages for Visual Studio 2015 release

Now that we know the version of DNX that ended up shipping with the Visual Studio 2015 release we have pushed updated packages for Autofac core and ASP.NET 5 across to NuGet. Autofac Autofac.Framework.DependencyInjection If you are playing around with the DNX nightly builds you can find matching Autofac builds on our…

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…