Skip to content
Griffin.Container adapter for ReactiveUI.
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Src/ReactiveUI.Griffin.Container
.gitattributes
.gitignore
LICENSE
README.md

README.md

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
     {
         /// <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>());
         }
     }
    
You can’t perform that action at this time.