Griffin.Container adapter for ReactiveUI.
-
Install Griffin.Container and ReactiveUI.
-
Add the file GriffinDependancyResolver.cs to your ReactiveUI project.
-
Finally, use it like this
internal static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] private static void Main() { var registrar = new ContainerRegistrar(); // Do some registrations with Griffin ..... // Set the Locator for ReactiveUI. Locator.Current = new GriffinDependancyResolver(registrar); // Resolve. Application.Run((MainView)Locator.CurrentMutable.GetService<IMainView>()); } }