ninject will load DefaultLogger if no logger is found. if no IRepository is found, will exception. created DefaultLogger which will just log to Debug.WriteLine #5
8 lines
333 B
XML
8 lines
333 B
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<module name="NinjectAssemblies">
|
|
<bind service="Interfaces.ILogger, Interfaces"
|
|
to="NLogLogger.NLogger, NLogLogger" scope="singleton" />
|
|
|
|
<bind service="Interfaces.IRepository, Interfaces"
|
|
to="SQLiteRepository.SQLiteRepository, SQLiteRepository" />
|
|
</module> |