Autofac and ReactiveUI

less than 1 minute read

Update I published a new post about using Autofac with ReactiveUI 6.

ReactiveUI uses an internal dependency resolver. Most of the cases are covered by it and it also can be used to resolve references other that ReactiveUI internal interfaces. However, if you want to use another container to inject constructor parameters or properties, you have to have your view models and views to be registered and resolved by a container.

Since I use Autofac, I decided to re-implement temporalcohesion version of IMutableDependencyResolver for StructureMap and adopt it to Autofac.

You can find my version on GitHub.

It should be initialized somewhere in a bootstrap code, like this: