1 instantiation of HttpConnectionContext
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionManager.cs (1)
81var connection = new HttpConnectionContext(id, connectionToken, _connectionLogger, metricsContext, pair.Application, pair.Transport, options, useStatefulReconnect);
42 references to HttpConnectionContext
Microsoft.AspNetCore.Http.Connections (42)
Internal\HttpConnectionContext.cs (3)
885HttpConnectionContext connection, 889private HttpConnectionContext? _connection = connection; 901var connection = Interlocked.Exchange(ref _connection, null);
Internal\HttpConnectionDispatcher.cs (22)
76HttpConnectionContext? connectionContext = null; 166if (!_manager.TryGetConnection(connectionToken.ToString(), out var connection)) 278HttpConnectionContext connection, HttpContext context, 365var connection = await GetConnectionAsync(context); 395HttpConnectionContext? connection; 558private async Task DoPersistentConnection(HttpConnectionContext connection) 605HttpConnectionContext? connection = null; 698var connection = await GetConnectionAsync(context); 796var connection = await GetConnectionAsync(context); 827private async Task<bool> EnsureConnectionStateAsync(HttpConnectionContext connection, HttpContext context, HttpTransportType transportType, HttpTransportType supportedTransports, ConnectionLogScope logScope, HttpConnectionDispatcherOptions options) 840case HttpConnectionContext.SetTransportState.Success: 843case HttpConnectionContext.SetTransportState.AlreadyActive: 851case HttpConnectionContext.SetTransportState.CannotChange: 1030private static void UpdateExpiration(HttpConnectionContext connection, HttpContext context) 1043private static DateTimeOffset GetAuthenticationExpiration(HttpConnectionContext connection, HttpContext context) 1106private static void CloneHttpContext(HttpContext context, HttpConnectionContext connection) 1174private async Task<bool> RejectIfUserChangedAsync(HttpConnectionContext connection, HttpContext context) 1213private async Task<HttpConnectionContext?> GetConnectionAsync(HttpContext context) 1227if (!_manager.TryGetConnection(connectionToken.ToString(), out var connection)) 1240private async Task<HttpConnectionContext?> GetOrCreateConnectionAsync(HttpContext context, HttpConnectionDispatcherOptions options) 1243HttpConnectionContext? connection; 1262private HttpConnectionContext CreateConnection(HttpConnectionDispatcherOptions options, int clientProtocolVersion = 0, bool useStatefulReconnect = false)
Internal\HttpConnectionManager.cs (11)
22private readonly ConcurrentDictionary<string, HttpConnectionContext> _connections = 23new ConcurrentDictionary<string, HttpConnectionContext>(StringComparer.Ordinal); 26private readonly ILogger<HttpConnectionContext> _connectionLogger; 33_connectionLogger = loggerFactory.CreateLogger<HttpConnectionContext>(); 49internal bool TryGetConnection(string id, [NotNullWhen(true)] out HttpConnectionContext? connection) 54internal HttpConnectionContext CreateConnection() 63internal HttpConnectionContext CreateConnection(HttpConnectionDispatcherOptions options, int negotiateVersion = 0, bool useStatefulReconnect = false) 81var connection = new HttpConnectionContext(id, connectionToken, _connectionLogger, metricsContext, pair.Application, pair.Transport, options, useStatefulReconnect); 91if (_connections.TryRemove(id, out var connection)) 149var connection = c.Value; 203internal async Task DisposeAndRemoveAsync(HttpConnectionContext connection, bool closeGracefully, HttpConnectionStopStatus status)
Internal\Transports\LongPollingServerTransport.cs (2)
15private readonly HttpConnectionContext? _connection; 21public LongPollingServerTransport(CancellationToken timeoutToken, PipeReader application, ILoggerFactory loggerFactory, HttpConnectionContext? connection)
Internal\Transports\ServerSentEventsServerTransport.cs (2)
15private readonly HttpConnectionContext? _connection; 21public ServerSentEventsServerTransport(PipeReader application, string connectionId, HttpConnectionContext? connection, ILoggerFactory loggerFactory)
Internal\Transports\WebSocketsServerTransport.cs (2)
17private readonly HttpConnectionContext _connection; 23public WebSocketsServerTransport(WebSocketOptions options, IDuplexPipe application, HttpConnectionContext connection, ILoggerFactory loggerFactory)