I'm trying to create a Ninject Factory using Ninject.Extensions.Factory like below:
public interface ICommandBatchFactory
{
CommandBatch GetCommandBatch(ILogger logger);
}
The problem is that I need "logger" to be injected to the instance / constructor (constructor pattern) and not to provide it explicitly in the GetCommandBatch of the factory.
Is this posibble with Ninject.Extensions.Factory? I' m trying to avoid referencing de Ninject Kernel or [Inject] annotations to not increase coupling.