Add readme note about keyed services with M.E.DI

Related to #148
This commit is contained in:
Tyrrrz
2024-10-26 21:51:37 +03:00
parent 093b6767c4
commit 73bf19d766

View File

@@ -578,6 +578,10 @@ public static class Program
} }
``` ```
> **Note**:
> If you want to use certain advanced features provided by `Microsoft.Extensions.DependencyInjection`, you may need to do a bit of extra work to configure the container properly.
> For example, to leverage support for keyed services, you need to [manually register an implementation of `IKeyedServiceProvider`](https://github.com/Tyrrrz/CliFx/issues/148).
### Testing ### Testing
Thanks to the `IConsole` abstraction, **CliFx** commands can be easily tested in isolation. Thanks to the `IConsole` abstraction, **CliFx** commands can be easily tested in isolation.