1 write to ServiceContext
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\KestrelServerImpl.cs (1)
68
ServiceContext
= serviceContext;
14 references to ServiceContext
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\KestrelServerImpl.cs (9)
74
_transportManager = new TransportManager(_transportFactories, _multiplexedTransportFactories, _httpsConfigurationService,
ServiceContext
);
115
public KestrelServerOptions Options =>
ServiceContext
.ServerOptions;
120
private KestrelTrace Trace =>
ServiceContext
.Log;
137
ServiceContext
.Heartbeat?.Start();
197
options.UseHttpServer(
ServiceContext
, application, options.Protocols, addAltSvcHeader);
201
connectionDelegate = EnforceConnectionLimit(connectionDelegate, Options.Limits.MaxConcurrentConnections, Trace,
ServiceContext
.Metrics);
216
options.UseHttp3Server(
ServiceContext
, application, options.Protocols, addAltSvcHeader);
220
multiplexedConnectionDelegate = EnforceConnectionLimit(multiplexedConnectionDelegate, Options.Limits.MaxConcurrentConnections, Trace,
ServiceContext
.Metrics);
253
ServiceContext
.Heartbeat?.Dispose();
Microsoft.AspNetCore.Server.Kestrel.Tests (5)
WebHostBuilderKestrelExtensionsTests.cs (5)
119
Assert.NotNull(server.
ServiceContext
.DiagnosticSource);
120
Assert.IsType<KestrelMetrics>(server.
ServiceContext
.Metrics);
121
Assert.Equal(PipeScheduler.ThreadPool, server.
ServiceContext
.Scheduler);
122
Assert.Equal(TimeProvider.System, server.
ServiceContext
.TimeProvider);
124
var handlers = (IHeartbeatHandler[])typeof(Heartbeat).GetField("_callbacks", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(server.
ServiceContext
.Heartbeat);