Implemented interface member:
method
Set<TFeature>
Microsoft.AspNetCore.Http.Features.IFeatureCollection.Set<TFeature>(TFeature)
75 references to Set
InMemory.FunctionalTests (5)
Http2\Http2TestBase.cs (2)
482features.Set<IConnectionMetricsContextFeature>(_metricsContextFeature); 483features.Set<IConnectionMetricsTagsFeature>(_metricsTagsFeature);
Http3\WebTransport\WebTransportTestUtilities.cs (3)
78features.Set<IStreamIdFeature>(new StreamId(streamCounter++)); 80features.Set(Mock.Of<IConnectionItemsFeature>()); 81features.Set(Mock.Of<IProtocolErrorCodeFeature>());
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\ComponentHubTest.cs (1)
137feature.Set(httpContextFeature.Object);
Microsoft.AspNetCore.Hosting.Tests (13)
HostingApplicationDiagnosticsTests.cs (11)
730features.Set<IHttpRequestFeature>(new HttpRequestFeature() 761features.Set<IHttpRequestFeature>(new HttpRequestFeature() 790features.Set<IHttpRequestFeature>(new HttpRequestFeature() 820features.Set<IHttpRequestFeature>(new HttpRequestFeature() 851features.Set<IHttpRequestFeature>(new HttpRequestFeature() 888features.Set<IHttpRequestFeature>(new HttpRequestFeature() 917features.Set<IHttpRequestFeature>(new HttpRequestFeature() 959features.Set<IHttpRequestFeature>(new HttpRequestFeature() 1027features.Set<IHttpRequestFeature>(new HttpRequestFeature() 1091features.Set<IHttpRequestFeature>(new HttpRequestFeature()); 1092features.Set<IHttpResponseFeature>(new HttpResponseFeature());
WebHostTests.cs (2)
1242features.Set<IHttpRequestFeature>(stub); 1243features.Set<IHttpResponseFeature>(stub);
Microsoft.AspNetCore.Http.Connections (4)
Internal\HttpConnectionDispatcher.cs (4)
749features.Set<IHttpRequestFeature>(requestFeature); 750features.Set<IHttpResponseFeature>(responseFeature); 751features.Set<IHttpResponseBodyFeature>(new StreamResponseBodyFeature(Stream.Null)); 752features.Set<IHttpConnectionFeature>(connectionFeature);
Microsoft.AspNetCore.Http.Tests (18)
DefaultHttpContextTests.cs (8)
153features.Set<IHttpRequestFeature>(new HttpRequestFeature()); 154features.Set<IHttpResponseFeature>(new HttpResponseFeature()); 155features.Set<IHttpResponseBodyFeature>(new StreamResponseBodyFeature(Stream.Null)); 156features.Set<IHttpWebSocketFeature>(new TestHttpWebSocketFeature()); 173newFeatures.Set<IHttpRequestFeature>(new HttpRequestFeature()); 174newFeatures.Set<IHttpResponseFeature>(new HttpResponseFeature()); 175newFeatures.Set<IHttpResponseBodyFeature>(new StreamResponseBodyFeature(Stream.Null)); 176newFeatures.Set<IHttpWebSocketFeature>(new TestHttpWebSocketFeature());
Internal\DefaultHttpResponseTests.cs (9)
78features.Set(responseBodyMock.Object); 81features.Set(responseMock.Object); 111features.Set(mock.Object); 115features.Set(responseMock.Object); 131features.Set(mock.Object); 135features.Set(responseMock.Object); 150features.Set(startMock.Object); 154features.Set(responseMock.Object); 179features.Set<IHttpResponseFeature>(response);
ResponseCookiesTest.cs (1)
20features.Set<IHttpResponseFeature>(responseFeature);
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (4)
RequestDecompressionMiddlewareBenchmark.cs (4)
56features.Set<IHttpRequestFeature>(new HttpRequestFeature()); 57features.Set<IHttpResponseFeature>(new HttpResponseFeature()); 58features.Set<IHttpMaxRequestBodySizeFeature>(new MaxRequestBodySizeFeature()); 59features.Set<IEndpointFeature>(new EndpointFeature(hasRequestSizeLimitMetadata));
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (3)
ResponseCachingBenchmark.cs (3)
87features.Set<IHttpRequestFeature>(new HttpRequestFeature()); 88features.Set<IHttpResponseFeature>(new HttpResponseFeature()); 89features.Set<IHttpResponseBodyFeature>(new PipeResponseBodyFeature(pipe.Writer));
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\InputParserTests.cs (1)
94features.Set<IServerVariablesFeature>(new TestServerVariablesFeature(variablesDict));
Microsoft.AspNetCore.Server.Kestrel.Core (4)
HttpsConfigurationService.cs (2)
151features.Set(new TlsConnectionCallbackOptions 160features.Set(new TlsConnectionCallbackOptions
Internal\Http3\Http3Connection.cs (1)
738features.Set<IStreamDirectionFeature>(new DefaultStreamDirectionFeature(canRead: false, canWrite: true));
Internal\WebTransport\WebTransportSession.cs (1)
130features.Set(_outputStreamDirectionFeature);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
Http1\Http1ConnectionTestsBase.cs (1)
45connectionFeatures.Set(Mock.Of<IConnectionLifetimeFeature>());
Http3\Http3HttpProtocolFeatureCollectionTests.cs (4)
76featureCollection.Set<IProtocolErrorCodeFeature>(this); 77featureCollection.Set<IStreamIdFeature>(this); 78featureCollection.Set<IStreamAbortFeature>(this); 79featureCollection.Set<IStreamClosedFeature>(this);
TestHelpers\TestInput.cs (1)
37connectionFeatures.Set(Mock.Of<IConnectionLifetimeFeature>());
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Http2\Http2ConnectionBenchmarkBase.cs (2)
79featureCollection.Set<IConnectionMetricsTagsFeature>(new TestConnectionMetricsTagsFeature()); 80featureCollection.Set<IProtocolErrorCodeFeature>(new TestProtocolErrorCodeFeature());
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (4)
QuicTestHelpers.cs (2)
76features.Set(tlsConnectionOptions); 91features.Set(new TlsConnectionCallbackOptions
QuicTransportFactoryTests.cs (2)
46features.Set(new TlsConnectionCallbackOptions()); 63features.Set(new TlsConnectionCallbackOptions
Microsoft.AspNetCore.TestHost (3)
HttpContextBuilder.cs (2)
246newFeatures.Set<IHttpResponseFeature>(clientResponseFeature); 247newFeatures.Set<IHttpResponseBodyFeature>(new StreamResponseBodyFeature(_responseReaderStream));
TestServer.cs (1)
26features.Set<IServerAddressesFeature>(new ServerAddressesFeature());
Microsoft.AspNetCore.TestHost.Tests (1)
TestServerTests.cs (1)
273featureCollection.Set<IServerAddressesFeature>(new ServerAddressesFeature());
Microsoft.Extensions.Features.Tests (6)
FeatureCollectionExtensionsTests.cs (2)
17features.Set<IThing>(thing); 33features.Set<IThing>(thing);
FeatureCollectionTests.cs (4)
72interfaces.Set(value); 82interfaces.Set(value); 92interfaces.Set<int?>(value); 102interfaces.Set(thing);