public void Process <TCommand>(TCommand command) where TCommand : ICommand { var handler = _factory.GetFor <TCommand>(); handler.Handle(command); }