Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vector-man/reactiveui.griffin.container

Griffin.Container adapter for ReactiveUI.
https://github.com/vector-man/reactiveui.griffin.container

adapter griffin ioc-container reactiveui serviceloader

Last synced: about 1 month ago
JSON representation

Griffin.Container adapter for ReactiveUI.

Awesome Lists containing this project

README

        

# ReactiveUI.Griffin.Container

Griffin.Container adapter for ReactiveUI.

# Usage

1. Install Griffin.Container and ReactiveUI.

2. Add the file GriffinDependancyResolver.cs to your ReactiveUI project.

3. Finally, use it like this

internal static class Program
{
///
/// The main entry point for the application.
///
[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());
}
}