Possible to DI CommandSettings? #1083
Unanswered
ryan-bennetts
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been looking at the DI example for injecting commands. This enables me to swap out implementations just by changing DI registration which is awesome.
Is there any way of providing
CommandSettings
via a similar mechanism?I'd like something like;
The aim of this would be able to switch between differing implementations of the same interface but with each having their own
CommandSettings
.I have been able to inject the correct type with
but it only ever has default/null values and doesn't populate with the content of the input args.
Any help is greatly appreciated 😄
Beta Was this translation helpful? Give feedback.
All reactions