JasperFx/oakton

Accept RegisterCommand(typeof(T))

joaofx opened this issue · 2 comments

Hi!

First of all, super cool library. Thanks for sharing it.

Currently, it seems there is two ways to register commands on CommandFactory::

RegisterCommand<T>()
RegisterCommands(Assembly assembly)

I need register by Type not using generics.

RegisterCommand(typeof(T))

Would you accept a pull request for that?

Thanks again.

@joaofx Hey, sorry I missed this. I would accept a PR, but I'm in the code this week and I can do that pretty quickly.

Uhhh that's awesome! Thanks a million!!