Created
March 31, 2017 13:31
-
-
Save mmierzwa/aad2a814ebeb0e22fb47cdb22ef2b154 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class NinjectMvxDroidSetup : MvxAndroidSetup | |
{ | |
protected NinjectMvxDroidSetup(Context applicationContext) : base(applicationContext) | |
{ | |
} | |
protected override void InitializeLastChance() | |
{ | |
base.InitializeLastChance(); | |
(NinjectMvxIoCProvider.Instance as NinjectMvxIoCProvider).ExecuteDelayedCallback(); | |
} | |
protected abstract NinjectDependenciesProvider GetNinjectDependenciesProvider(); | |
protected sealed override IMvxIoCProvider CreateIocProvider() | |
=> new NinjectMvxIoCProvider(GetNinjectDependenciesProvider().GetNinjectModules().ToArray()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment