We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CommandHandler only defines up to 7 strongly typed parameters.
What if you need more parameters for your command?
Is there a better way to handle commands with larger numbers of parameters?
Any reason more than 7 parameters are missing from the current implementation?
The text was updated successfully, but these errors were encountered:
If you need more than 7 parameters you can declare more overloads in an extension method.
Below is an example to define a 10 parameter overload.
public static ICommandHandler Create<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>( Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> action) => HandlerDescriptor.FromDelegate(action).GetCommandHandler();
Sorry, something went wrong.
You can also use custom classes and options will get bound to properties or constructor parameters: #458 (comment).
Perfect, that's what I was looking for. Sorry, I forgot to check the closed issues.
No branches or pull requests
CommandHandler only defines up to 7 strongly typed parameters.
What if you need more parameters for your command?
Is there a better way to handle commands with larger numbers of parameters?
Any reason more than 7 parameters are missing from the current implementation?
The text was updated successfully, but these errors were encountered: