9 implementations of IHttpApplication
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\DummyApplication.cs (1)
12public class DummyApplication : IHttpApplication<HttpContext>
Microsoft.AspNetCore.Hosting (1)
Internal\HostingApplication.cs (1)
13internal sealed class HostingApplication : IHttpApplication<HostingApplication.Context>
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
DummyApplication.cs (1)
12internal class DummyApplication : IHttpApplication<HttpContext>
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (1)
DummyApplication.cs (1)
10internal class DummyApplication : IHttpApplication<HttpContext>
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\DummyApplication.cs (1)
12public class DummyApplication : IHttpApplication<HttpContext>
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\DummyApplication.cs (1)
12public class DummyApplication : IHttpApplication<HttpContext>
Microsoft.AspNetCore.TestHost (1)
ApplicationWrapper.cs (1)
18internal sealed class ApplicationWrapper<TContext> : ApplicationWrapper, IHttpApplication<TContext> where TContext : notnull
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (2)
597private class DummyApplication : ApplicationWrapper, IHttpApplication<TestHostingContext> 640private class InspectingApplication : ApplicationWrapper, IHttpApplication<TestHostingContext>
78 references to IHttpApplication
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\DummyServer.cs (1)
18public Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken)
Microsoft.AspNetCore.DataProtection.Tests (1)
HostingTests.cs (1)
118public Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken)
Microsoft.AspNetCore.Hosting.Server.Abstractions (4)
IHostContextContainer.cs (2)
7/// When implemented by a Server allows an <see cref="IHttpApplication{TContext}"/> to pool and reuse 10/// <typeparam name="TContext">The <see cref="IHttpApplication{TContext}"/> Host context</typeparam>
IServer.cs (2)
21/// <param name="application">An instance of <see cref="IHttpApplication{TContext}"/>.</param> 24Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken) where TContext : notnull;
Microsoft.AspNetCore.Hosting.Tests (4)
GenericWebHostBuilderTests.cs (1)
143public Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken) => Task.CompletedTask;
WebHostBuilderTests.cs (2)
1456public Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken) 1575public Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken)
WebHostTests.cs (1)
1247public Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken)
Microsoft.AspNetCore.Hosting.TestSites (1)
Program.cs (1)
66public Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken)
Microsoft.AspNetCore.Hosting.WindowsServices.Tests (1)
WebHostServiceTests.cs (1)
54public Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken)
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
352public Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken) where TContext : notnull => Task.CompletedTask;
Microsoft.AspNetCore.Server.HttpSys (6)
ApplicationRequestContextFactory.cs (2)
10private readonly IHttpApplication<TContext> _application; 13public ApplicationRequestContextFactory(IHttpApplication<TContext> application, MessagePump messagePump)
MessagePump.cs (1)
63public Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken) where TContext : notnull
RequestProcessing\RequestContextOfT.cs (3)
13private readonly IHttpApplication<TContext> _application; 16public RequestContext(IHttpApplication<TContext> application, MessagePump messagePump, HttpSysListener server, uint? bufferSize, ulong requestId) 26var application = _application;
Microsoft.AspNetCore.Server.IIS (5)
Core\IISHttpContextOfT.cs (2)
16private readonly IHttpApplication<TContext> _application; 18public IISHttpContextOfT(MemoryPool<byte> memoryPool, IHttpApplication<TContext> application, NativeSafeHandle pInProcessHandler, IISServerOptions options, IISHttpServer server, ILogger logger, bool useLatin1)
Core\IISHttpServer.cs (3)
95public unsafe Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken) where TContext : notnull 278private readonly IHttpApplication<T> _application; 285public IISContextFactory(MemoryPool<byte> memoryPool, IHttpApplication<T> application, IISServerOptions options, IISHttpServer server, ILogger logger)
Microsoft.AspNetCore.Server.Kestrel.Core (30)
Internal\Http\HttpProtocol.cs (2)
577public async Task ProcessRequestsAsync<TContext>(IHttpApplication<TContext> application) where TContext : notnull 631private async Task ProcessRequests<TContext>(IHttpApplication<TContext> application) where TContext : notnull
Internal\Http2\Http2Connection.cs (4)
286public async Task ProcessRequestsAsync<TContext>(IHttpApplication<TContext> application) where TContext : notnull 677private Task ProcessFrameAsync<TContext>(IHttpApplication<TContext> application, in ReadOnlySequence<byte> payload) where TContext : notnull 786private Task ProcessHeadersFrameAsync<TContext>(IHttpApplication<TContext> application, in ReadOnlySequence<byte> payload) where TContext : notnull 876private Http2Stream GetStream<TContext>(IHttpApplication<TContext> application) where TContext : notnull
Internal\Http2\Http2Stream.cs (1)
24/// a simplified version omitting <see cref="Hosting.Server.IHttpApplication{TContext}"/> that
Internal\Http2\Http2StreamOfT.cs (2)
13private readonly IHttpApplication<TContext> _application; 15public Http2Stream(IHttpApplication<TContext> application, Http2StreamContext context)
Internal\Http3\Http3Connection.cs (3)
329public async Task ProcessRequestsAsync<TContext>(IHttpApplication<TContext> application) where TContext : notnull 581private async Task CreateHttp3Stream<TContext>(ConnectionContext streamContext, IHttpApplication<TContext> application, long streamId) where TContext : notnull 735private async ValueTask<Http3ControlStream> CreateNewUnidirectionalStreamAsync<TContext>(IHttpApplication<TContext> application) where TContext : notnull
Internal\Http3\Http3ControlStream.cs (1)
183public async Task ProcessRequestAsync<TContext>(IHttpApplication<TContext> application) where TContext : notnull
Internal\Http3\Http3ControlStreamOfT.cs (2)
11private readonly IHttpApplication<TContext> _application; 13public Http3ControlStream(IHttpApplication<TContext> application, Http3StreamContext context, long? headerType) : base(context, headerType)
Internal\Http3\Http3Stream.cs (3)
584public async Task ProcessRequestAsync<TContext>(IHttpApplication<TContext> application) where TContext : notnull 751private Task ProcessHttp3Stream<TContext>(IHttpApplication<TContext> application, in ReadOnlySequence<byte> payload, bool isCompleted) where TContext : notnull 778private async Task ProcessHeadersFrameAsync<TContext>(IHttpApplication<TContext> application, ReadOnlySequence<byte> payload, bool isCompleted) where TContext : notnull
Internal\Http3\Http3StreamOfT.cs (2)
12private readonly IHttpApplication<TContext> _application; 14public Http3Stream(IHttpApplication<TContext> application, Http3StreamContext context)
Internal\HttpConnection.cs (1)
53public async Task ProcessRequestsAsync<TContext>(IHttpApplication<TContext> httpApplication) where TContext : notnull
Internal\IRequestProcessor.cs (1)
11Task ProcessRequestsAsync<TContext>(IHttpApplication<TContext> application) where TContext : notnull;
Internal\KestrelServerImpl.cs (1)
120public async Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken) where TContext : notnull
KestrelServer.cs (1)
51public Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken) where TContext : notnull
Middleware\HttpConnectionBuilderExtensions.cs (2)
11public static IConnectionBuilder UseHttpServer<TContext>(this IConnectionBuilder builder, ServiceContext serviceContext, IHttpApplication<TContext> application, HttpProtocols protocols, bool addAltSvcHeader) where TContext : notnull 20public static IMultiplexedConnectionBuilder UseHttp3Server<TContext>(this IMultiplexedConnectionBuilder builder, ServiceContext serviceContext, IHttpApplication<TContext> application, HttpProtocols protocols, bool addAltSvcHeader) where TContext : notnull
Middleware\HttpConnectionMiddleware.cs (2)
16private readonly IHttpApplication<TContext> _application; 20public HttpConnectionMiddleware(ServiceContext serviceContext, IHttpApplication<TContext> application, HttpProtocols protocols, bool addAltSvcHeader)
Middleware\HttpMultiplexedConnectionMiddleware.cs (2)
16private readonly IHttpApplication<TContext> _application; 20public HttpMultiplexedConnectionMiddleware(ServiceContext serviceContext, IHttpApplication<TContext> application, HttpProtocols protocols, bool addAltSvcHeader)
Microsoft.AspNetCore.TestHost (10)
ApplicationWrapper.cs (8)
20private readonly IHttpApplication<TContext> _application; 23public ApplicationWrapper(IHttpApplication<TContext> application, Action preProcessRequestAsync) 31return ((IHttpApplication<TContext>)this).CreateContext(features); 34TContext IHttpApplication<TContext>.CreateContext(IFeatureCollection features) 41((IHttpApplication<TContext>)this).DisposeContext((TContext)context, exception); 44void IHttpApplication<TContext>.DisposeContext(TContext context, Exception? exception) 51return ((IHttpApplication<TContext>)this).ProcessRequestAsync((TContext)context); 54Task IHttpApplication<TContext>.ProcessRequestAsync(TContext context)
ClientHandler.cs (1)
30/// <param name="application">The <see cref="IHttpApplication{TContext}"/>.</param>
TestServer.cs (1)
245Task IServer.StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken)
Microsoft.AspNetCore.TestHost.Tests (12)
ClientHandlerTests.cs (12)
608return ((IHttpApplication<TestHostingContext>)this).CreateContext(features); 611TestHostingContext IHttpApplication<TestHostingContext>.CreateContext(IFeatureCollection contextFeatures) 621((IHttpApplication<TestHostingContext>)this).DisposeContext((TestHostingContext)context, exception); 624void IHttpApplication<TestHostingContext>.DisposeContext(TestHostingContext context, Exception exception) 631return ((IHttpApplication<TestHostingContext>)this).ProcessRequestAsync((TestHostingContext)context); 634Task IHttpApplication<TestHostingContext>.ProcessRequestAsync(TestHostingContext context) 651return ((IHttpApplication<TestHostingContext>)this).CreateContext(features); 654TestHostingContext IHttpApplication<TestHostingContext>.CreateContext(IFeatureCollection contextFeatures) 665((IHttpApplication<TestHostingContext>)this).DisposeContext((TestHostingContext)context, exception); 668void IHttpApplication<TestHostingContext>.DisposeContext(TestHostingContext context, Exception exception) 675return ((IHttpApplication<TestHostingContext>)this).ProcessRequestAsync((TestHostingContext)context); 678Task IHttpApplication<TestHostingContext>.ProcessRequestAsync(TestHostingContext context)
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
335public Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken) where TContext : notnull 3112public Task StartAsync<TContext>(IHttpApplication<TContext> application, CancellationToken cancellationToken) where TContext : notnull