Closed ABatenev closed 10 months ago
@ABatenev Hi, could you please reformat your code sample, it is hard to read with all those indentations and spacing. And add the code for the expected resolutions and what types you are expecting.
@ABatenev Moving this issue to the discussion as it looks more like a question.
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?