Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/vector-man/reactiveui.griffin.container
- Owner: vector-man
- License: mit
- Created: 2017-04-11T06:20:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-11T07:01:46.000Z (almost 8 years ago)
- Last Synced: 2024-11-06T11:49:52.245Z (3 months ago)
- Topics: adapter, griffin, ioc-container, reactiveui, serviceloader
- Language: C#
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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());
}
}