Is there a way in the native .NET Core DI Container to use named bindings like in Ninject?
For example if I have two implementations of the same interface and I want them in different scenarios.
Expecting to register them like:
services.AddSingleton<FirstValidationRule, IValidationRule>("first");
services.AddSingleton<SecondValidationRule, IValidationRule>("second");
And later to call the desired service (for example the second one) like:
IValidationRule chosenService = provider.GetService<IValidationRule>("second");