
windows-services – 首先是TopShelf,Ninject和EF代码的Ninject范围问题
我目前正在使用TopShelf和Ninject来创建 Windows服务.我有以下代码使用TopShelf设置Windows服务: static void Main(string[] args){ using (IKernel kernel = new StandardKernel(new NinjectDependencyResolver())) { Setti
我目前正在使用TopShelf和Ninject来创建 Windows服务.我有以下代码使用TopShelf设置Windows服务: static void Main(string[] args){ using (IKernel kernel = new StandardKernel(new NinjectDependencyResolver())) { Setti