4 instantiations of MetadataService
Microsoft.AspNetCore.Http.Extensions.Tests (4)
RequestDelegateFactoryTests.cs (2)
3018var metadataService = new MetadataService(); 3033var metadataService = new MetadataService();
RequestDelegateGenerator\RequestDelegateCreationTests.Metadata.cs (2)
360var metadataService = new MetadataService(); 380var metadataService = new MetadataService();
12 references to MetadataService
Microsoft.AspNetCore.Http.Extensions.Tests (12)
RequestDelegateFactoryTests.cs (6)
3018var metadataService = new MetadataService(); 3025Assert.Contains(result.EndpointMetadata, m => m is MetadataService); 3033var metadataService = new MetadataService(); 3040Assert.Contains(result.EndpointMetadata, m => m is MetadataService); 3295if (builder.ApplicationServices.GetRequiredService<MetadataService>() is { } metadataService) 3311if (builder.ApplicationServices.GetRequiredService<MetadataService>() is { } metadataService)
RequestDelegateGenerator\RequestDelegateCreationTests.Metadata.cs (4)
360var metadataService = new MetadataService(); 368Assert.Contains(endpoint.Metadata, m => m is MetadataService); 380var metadataService = new MetadataService(); 388Assert.Contains(endpoint.Metadata, m => m is MetadataService);
RequestDelegateGenerator\SharedTypes.cs (2)
631if (builder.ApplicationServices.GetRequiredService<MetadataService>() is { } metadataService) 685if (builder.ApplicationServices.GetRequiredService<MetadataService>() is { } metadataService)