-
1 votesanswersviews
Ninject Factory Extension
我在Ninject Factory Extension周围缠绕我有点麻烦 . 我有以下类结构 public class Resource { public IResourceLoader ResourceLoader {get;set;} public Resource(IResourceLoader ResourceLoader) { ... -
0 votesanswersviews
Ninject装饰类绑定
我想用Ninject绑定装饰类 . public interface ICommandBus{ Send<T>(T command);} // This is my first CommandBus class I will decorate this. public class CommandBus: ICommandBus { public void send(){ ... -
1 votesanswersviews
使用.NET 4 System.ServiceProcess.ServiceBase将Ninject v2升级到v3
我试图使用Ninject v3来测试.NET4 Windows服务( System.ServiceProcess.ServiceBase )中托管的Web服务 . 我创建了 MyServerModule : NinjectModule ,并且在 Load() 中,我根据 app.config 设置有条件地将我的接口绑定到运行时对象 . 在 ServiceBase.OnStart() 中,init步...