Replies: 2 comments
-
@ABatenev Hi, could you please reformat your code sample, it is hard to read with all those indentations and spacing. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@ABatenev Moving this issue to the discussion as it looks more like a question. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
previously I registered the serviceas follows:
Here I define which strategy to assign to the model's. Now the task has become more complicated, I have added a second service CompileFoo: IFoo". The base foo needs to be registered with the key FooType.Base, and compile with the key FooType.Compile. Will the following registration work correctly:
And how to register the second service so that the first one is always used by default, and the second one is only used if we explicitly specify the serviceKey attribute, while also correctly taking the foo strategy?
Beta Was this translation helpful? Give feedback.
All reactions