FlexitimeTracker/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/NinjectConfig.xml
chris.watts90@outlook.com 24ba9480e9 changed Configuration to bind ninject assemblies from xml file using Ninject.Extentions.Xml
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
2017-02-10 22:40:18 +00:00

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>