4 types derived from ServiceContext
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
17internal class TestServiceContext : ServiceContext
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
17internal class TestServiceContext : ServiceContext
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
17internal class TestServiceContext : ServiceContext
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
17internal class TestServiceContext : ServiceContext
4 instantiations of ServiceContext
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
32var context = new ServiceContext
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\KestrelServerImpl.cs (1)
98return new ServiceContext
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
32var context = new ServiceContext
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
32var context = new ServiceContext
71 references to ServiceContext
InMemory.FunctionalTests (14)
Http2\Http2TestBase.cs (3)
1406private static PipeOptions GetInputPipeOptions(ServiceContext serviceContext, MemoryPool<byte> memoryPool, PipeScheduler writerScheduler) => new PipeOptions 1417private static PipeOptions GetOutputPipeOptions(ServiceContext serviceContext, MemoryPool<byte> memoryPool, PipeScheduler readerScheduler) => new PipeOptions 1428private static long GetOutputResponseBufferSize(ServiceContext serviceContext)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (5)
37public Http3InMemory(ServiceContext serviceContext, FakeTimeProvider fakeTimeProvider, ITimeoutHandler timeoutHandler, ILoggerFactory loggerFactory) 72internal ServiceContext _serviceContext; 362public static PipeOptions GetInputPipeOptions(ServiceContext serviceContext, MemoryPool<byte> memoryPool, PipeScheduler writerScheduler) => new PipeOptions 373public static PipeOptions GetOutputPipeOptions(ServiceContext serviceContext, MemoryPool<byte> memoryPool, PipeScheduler readerScheduler) => new PipeOptions 384private static long GetOutputResponseBufferSize(ServiceContext serviceContext)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (6)
23public static ServiceContext CreateServiceContext( 32var context = new ServiceContext 50ServiceContext serviceContext, 78ServiceContext serviceContext = null, 139ServiceContext serviceContext = null, 180ServiceContext serviceContext = null,
Microsoft.AspNetCore.Server.Kestrel.Core (25)
Internal\BaseHttpConnectionContext.cs (2)
19ServiceContext serviceContext, 42public ServiceContext ServiceContext { get; }
Internal\ConnectionDispatcher.cs (2)
12private readonly ServiceContext _serviceContext; 17public ConnectionDispatcher(ServiceContext serviceContext, Func<T, Task> connectionDelegate, TransportConnectionManager transportConnectionManager)
Internal\Http\HttpProtocol.cs (1)
99public ServiceContext ServiceContext => _context.ServiceContext;
Internal\Http2\Http2FrameWriter.cs (1)
118ServiceContext serviceContext)
Internal\Http2\Http2StreamContext.cs (1)
20ServiceContext serviceContext,
Internal\Http3\Http3Connection.cs (1)
258var serviceContext = _context.ServiceContext;
Internal\Http3\Http3StreamContext.cs (1)
20ServiceContext serviceContext,
Internal\HttpConnectionContext.cs (1)
20ServiceContext serviceContext,
Internal\HttpMultiplexedConnectionContext.cs (1)
19ServiceContext serviceContext,
Internal\Infrastructure\KestrelConnection.cs (2)
21protected readonly ServiceContext _serviceContext; 25ServiceContext serviceContext,
Internal\Infrastructure\KestrelConnectionOfT.cs (1)
17ServiceContext serviceContext,
Internal\Infrastructure\TransportManager.cs (2)
19private readonly ServiceContext _serviceContext; 25ServiceContext serviceContext)
Internal\KestrelServerImpl.cs (3)
55ServiceContext serviceContext) 77private static ServiceContext CreateServiceContext(IOptions<KestrelServerOptions> options, ILoggerFactory loggerFactory, DiagnosticSource? diagnosticSource, KestrelMetrics metrics, 118internal ServiceContext ServiceContext { get; }
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)
15private readonly ServiceContext _serviceContext; 20public HttpConnectionMiddleware(ServiceContext serviceContext, IHttpApplication<TContext> application, HttpProtocols protocols, bool addAltSvcHeader)
Middleware\HttpMultiplexedConnectionMiddleware.cs (2)
15private readonly ServiceContext _serviceContext; 20public HttpMultiplexedConnectionMiddleware(ServiceContext serviceContext, IHttpApplication<TContext> application, HttpProtocols protocols, bool addAltSvcHeader)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (9)
Http1\Http1ConnectionTestsBase.cs (1)
23internal ServiceContext _serviceContext;
Http2\Http2FrameWriterTests.cs (1)
52var serviceContext = TestContextFactory.CreateServiceContext(new KestrelServerOptions());
src\Servers\Kestrel\shared\test\TestContextFactory.cs (6)
23public static ServiceContext CreateServiceContext( 32var context = new ServiceContext 50ServiceContext serviceContext, 78ServiceContext serviceContext = null, 139ServiceContext serviceContext = null, 180ServiceContext serviceContext = null,
StartLineTests.cs (1)
524var serviceContext = TestContextFactory.CreateServiceContext(
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (23)
HeaderCollectionBenchmark.cs (1)
331var serviceContext = TestContextFactory.CreateServiceContext(
Http1ConnectionBenchmark.cs (1)
34var serviceContext = TestContextFactory.CreateServiceContext(
Http1ConnectionParsingOverheadBenchmark.cs (1)
30var serviceContext = TestContextFactory.CreateServiceContext(
Http1LargeWritingBenchmark.cs (1)
71var serviceContext = TestContextFactory.CreateServiceContext(
Http1ReadingBenchmark.cs (1)
100var serviceContext = TestContextFactory.CreateServiceContext(
Http1WritingBenchmark.cs (1)
105var serviceContext = TestContextFactory.CreateServiceContext(
Http2\Http2ConnectionBenchmarkBase.cs (1)
71var serviceContext = TestContextFactory.CreateServiceContext(
Http2\Http2FrameWriterBenchmark.cs (1)
32var serviceContext = TestContextFactory.CreateServiceContext(
Http3\Http3ConnectionBenchmarkBase.cs (1)
46var serviceContext = TestContextFactory.CreateServiceContext(
HttpProtocolFeatureCollection.cs (1)
233var serviceContext = TestContextFactory.CreateServiceContext(
RequestParsingBenchmark.cs (1)
31var serviceContext = TestContextFactory.CreateServiceContext(
ResponseHeaderCollectionBenchmark.cs (1)
179var serviceContext = TestContextFactory.CreateServiceContext(
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (5)
37public Http3InMemory(ServiceContext serviceContext, FakeTimeProvider fakeTimeProvider, ITimeoutHandler timeoutHandler, ILoggerFactory loggerFactory) 72internal ServiceContext _serviceContext; 362public static PipeOptions GetInputPipeOptions(ServiceContext serviceContext, MemoryPool<byte> memoryPool, PipeScheduler writerScheduler) => new PipeOptions 373public static PipeOptions GetOutputPipeOptions(ServiceContext serviceContext, MemoryPool<byte> memoryPool, PipeScheduler readerScheduler) => new PipeOptions 384private static long GetOutputResponseBufferSize(ServiceContext serviceContext)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (6)
23public static ServiceContext CreateServiceContext( 32var context = new ServiceContext 50ServiceContext serviceContext, 78ServiceContext serviceContext = null, 139ServiceContext serviceContext = null, 180ServiceContext serviceContext = null,