5 implementations of IRequestBodyPipeFeature
Microsoft.AspNetCore.Http (1)
Features\RequestBodyPipeFeature.cs (1)
11public class RequestBodyPipeFeature : IRequestBodyPipeFeature
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
497internal sealed class PipeRequestBodyFeature : IRequestBodyPipeFeature
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
497internal sealed class PipeRequestBodyFeature : IRequestBodyPipeFeature
Microsoft.AspNetCore.Http.Tests (1)
Features\FormFeatureTests.cs (1)
118private class MockRequestBodyPipeFeature : IRequestBodyPipeFeature
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.Generated.cs (1)
31IRequestBodyPipeFeature,
24 references to IRequestBodyPipeFeature
Microsoft.AspNetCore.Http (5)
Features\RequestBodyPipeFeature.cs (2)
9/// Default implementation for <see cref="IRequestBodyPipeFeature"/>. 21/// Initializes a new instance of <see cref="IRequestBodyPipeFeature"/>.
Internal\DefaultHttpRequest.cs (3)
21private static readonly Func<HttpContext, IRequestBodyPipeFeature> _newRequestBodyPipeFeature = context => new RequestBodyPipeFeature(context); 64private IRequestBodyPipeFeature RequestBodyPipeFeature => 184public IRequestBodyPipeFeature? BodyPipe;
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBody.cs (2)
316httpContext.Features.Set<IRequestBodyPipeFeature>(new PipeRequestBodyFeature(pipeReader)); 357httpContext.Features.Set<IRequestBodyPipeFeature>(new PipeRequestBodyFeature(pipeReader));
Microsoft.AspNetCore.Http.Tests (1)
Features\FormFeatureTests.cs (1)
98context.Features.Set<IRequestBodyPipeFeature>(mockFeature);
Microsoft.AspNetCore.Server.Kestrel.Core (10)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
88PipeReader IRequestBodyPipeFeature.Reader
Internal\Http\HttpProtocol.Generated.cs (9)
50internal protected IRequestBodyPipeFeature? _currentIRequestBodyPipeFeature; 232else if (key == typeof(IRequestBodyPipeFeature)) 384else if (key == typeof(IRequestBodyPipeFeature)) 386_currentIRequestBodyPipeFeature = (IRequestBodyPipeFeature?)value; 538else if (typeof(TFeature) == typeof(IRequestBodyPipeFeature)) 540feature = Unsafe.As<IRequestBodyPipeFeature?, TFeature?>(ref _currentIRequestBodyPipeFeature); 698else if (typeof(TFeature) == typeof(IRequestBodyPipeFeature)) 700_currentIRequestBodyPipeFeature = Unsafe.As<TFeature?, IRequestBodyPipeFeature?>(ref feature); 848yield return new KeyValuePair<Type, object>(typeof(IRequestBodyPipeFeature), _currentIRequestBodyPipeFeature);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
Http1\Http1HttpProtocolFeatureCollectionTests.cs (4)
108_collection[typeof(IRequestBodyPipeFeature)] = CreateHttp1Connection(); 138_collection.Set<IRequestBodyPipeFeature>(CreateHttp1Connection()); 186Assert.Same(_collection.Get<IRequestBodyPipeFeature>(), _collection[typeof(IRequestBodyPipeFeature)]);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
HttpProtocolFeatureCollection.cs (2)
82public IRequestBodyPipeFeature Get_IRequestBodyPipeFeature() 84return _collection.Get<IRequestBodyPipeFeature>();