XNA and Ninject: Syntax for dependency arguments?
- by Rosarch
I have a class with a public constructor:
public MasterEngine(IInputReader inputReader)
{
this.inputReader = inputReader;
graphicsDeviceManager = new GraphicsDeviceManager(this);
Components.Add(new GamerServicesComponent(this));
}
How can I inject dependencies like graphicsDeviceManager and new GamerServicesComponent while still supplying the argument this?