3 references to AddKeyedService
Microsoft.AspNetCore.Components.Tests (3)
DependencyInjectionTest.cs (3)
71
_serviceProvider.
AddKeyedService
<IMyService>(serviceInstance, "mismatched-key");
102
_serviceProvider.
AddKeyedService
<IMyService>(serviceInstance, HasKeyedInjectableProperty.ServiceKey);
121
_serviceProvider.
AddKeyedService
<IMyService>(serviceInstance, HasManyInjectableProperties.ServiceKey);