Created
March 31, 2017 13:30
-
-
Save mmierzwa/7ff53a9bd99eeff09cf5e71db568c3ba 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 NinjectDependenciesProvider | |
{ | |
protected abstract IEnumerable<INinjectModule> GetPlatformSpecificModules(); | |
protected abstract IEnumerable<INinjectModule> GetPortableNinjectModules(); | |
public IEnumerable<INinjectModule> GetNinjectModules() | |
{ | |
foreach (var portableModule in GetPortableNinjectModules()) | |
{ | |
yield return portableModule; | |
} | |
foreach (var platformModule in GetPlatformSpecificModules()) | |
{ | |
yield return platformModule; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment