36 references to Service1
Microsoft.AspNetCore.SignalR.Tests (36)
HubConnectionHandlerTests.cs (21)
4671
provider.AddSingleton<
Service1
>();
4688
provider.AddSingleton<
Service1
>();
4707
provider.AddSingleton<
Service1
>();
4756
provider.AddSingleton<
Service1
>();
4777
provider.AddSingleton<
Service1
>();
4798
provider.AddSingleton<
Service1
>();
4823
provider.AddSingleton<
Service1
>();
4845
provider.AddSingleton<
Service1
>();
4867
provider.AddSingleton<
Service1
>();
4930
provider.AddKeyedScoped<
Service1
>("service1");
4931
provider.AddKeyedScoped<
Service1
>("service2");
4953
provider.AddKeyedScoped<
Service1
>("service1");
4954
provider.AddKeyedScoped<
Service1
>("service2");
4976
provider.AddKeyedScoped<
Service1
>("service1");
4977
provider.AddKeyedScoped<
Service1
>("service2");
5000
provider.AddKeyedScoped<
Service1
>("service1");
5001
provider.AddKeyedScoped<
Service1
>("service2");
5023
provider.AddKeyedScoped<
Service1
>("service1");
5024
provider.AddKeyedScoped<
Service1
>("service2");
5060
provider.AddKeyedScoped<
Service1
>("service1");
5071
provider.AddSingleton<
Service1
>();
HubConnectionHandlerTestUtils\Hubs.cs (15)
1365
public bool SingleService([FromService]
Service1
service)
1370
public bool MultipleServices([FromService]
Service1
service, [FromService] Service2 service2, [FromService] Service3 service3)
1375
public async Task<int> ServicesAndParams(int value, [FromService]
Service1
service, ChannelReader<int> channelReader, [FromService] Service2 service2, bool value2)
1385
public int ServiceWithoutAttribute(
Service1
service)
1390
public int ServiceWithAndWithoutAttribute(
Service1
service, [FromService] Service2 service2)
1395
public int IEnumerableOfServiceWithoutAttribute(IEnumerable<
Service1
> services)
1411
public int MultipleSameKeyedServices([FromKeyedServices("service1")]
Service1
service, [FromKeyedServices("service1")]
Service1
service2)
1417
public int KeyedService([FromKeyedServices("service1")]
Service1
service)
1422
public int KeyedServiceWithParam(int input, [FromKeyedServices("service1")]
Service1
service)
1427
public int KeyedServiceNonKeyedService(Service2 service2, [FromKeyedServices("service1")]
Service1
service)
1432
public int MultipleKeyedServices([FromKeyedServices("service1")]
Service1
service, [FromKeyedServices("service2")]
Service1
service2)
1441
public void BadMethod([FromKeyedServices("service1")] [FromService]
Service1
service)
1453
int a64, [FromService]
Service1
service)