112 references to ConnectionDelegate
Aspire.Dashboard (2)
Authentication\Connection\ConnectionTypeMiddleware.cs (2)
16private readonly ConnectionDelegate _next; 18public ConnectionTypeMiddleware(ConnectionType[] connectionTypes, ConnectionDelegate next)
InMemory.FunctionalTests (6)
ConnectionMiddlewareTests.cs (4)
333private readonly ConnectionDelegate _next; 335public RewritingConnectionMiddleware(ConnectionDelegate next) 365private readonly ConnectionDelegate _next; 367public AsyncConnectionMiddleware(ConnectionDelegate next)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (2)
14private readonly ConnectionDelegate _next; 16public PassThroughConnectionMiddleware(ConnectionDelegate next)
Microsoft.AspNetCore.Connections.Abstractions (13)
ConnectionBuilder.cs (8)
16private readonly IList<Func<ConnectionDelegate, ConnectionDelegate>> _components = new List<Func<ConnectionDelegate, ConnectionDelegate>>(); 31public IConnectionBuilder Use(Func<ConnectionDelegate, ConnectionDelegate> middleware) 38public ConnectionDelegate Build() 40ConnectionDelegate app = features =>
ConnectionBuilderExtensions.cs (2)
34/// Prefer using <see cref="Use(IConnectionBuilder, Func{ConnectionContext, ConnectionDelegate, Task})"/> for better performance as shown below: 65public static IConnectionBuilder Use(this IConnectionBuilder connectionBuilder, Func<ConnectionContext, ConnectionDelegate, Task> middleware)
IConnectionBuilder.cs (3)
23IConnectionBuilder Use(Func<ConnectionDelegate, ConnectionDelegate> middleware); 29ConnectionDelegate Build();
Microsoft.AspNetCore.Http.Connections (6)
ConnectionEndpointRouteBuilderExtensions.cs (1)
89var connectionDelegate = connectionBuilder.Build();
Internal\HttpConnectionContext.cs (3)
406ConnectionDelegate connectionDelegate, 440ConnectionDelegate connectionDelegate, 626private async Task ExecuteApplication(ConnectionDelegate connectionDelegate)
Internal\HttpConnectionDispatcher.cs (2)
61public async Task ExecuteAsync(HttpContext context, HttpConnectionDispatcherOptions options, ConnectionDelegate connectionDelegate) 121private async Task ExecuteAsync(HttpContext context, ConnectionDelegate connectionDelegate, HttpConnectionDispatcherOptions options, ConnectionLogScope logScope)
Microsoft.AspNetCore.Http.Connections.Tests (59)
HttpConnectionDispatcherTests.cs (59)
236var app = builder.Build(); 317var app = builder.Build(); 358var app = builder.Build(); 396var app = builder.Build(); 435var app = builder.Build(); 485var app = builder.Build(); 549var app = builder.Build(); 606var app = builder.Build(); 669var app = builder.Build(); 723var app = builder.Build(); 786var app = builder.Build(); 866var app = builder.Build(); 940var app = builder.Build(); 1014var app = builder.Build(); 1046var app = builder.Build(); 1073var app = builder.Build(); 1109var app = builder.Build(); 1145var app = builder.Build(); 1196var app = builder.Build(); 1290var app = builder.Build(); 1331var app = builder.Build(); 1376var app = builder.Build(); 1417var app = builder.Build(); 1449var app = builder.Build(); 1492var app = builder.Build(); 1557var app = builder.Build(); 1621var app = builder.Build(); 1651var app = builder.Build(); 1686var app = builder.Build(); 1720var app = builder.Build(); 1760var app = builder.Build(); 1809var app = builder.Build(); 1849var app = builder.Build(); 1901var app = builder.Build(); 1949var app = builder.Build(); 1993var app = builder.Build(); 2027var app = builder.Build(); 2066var app = builder.Build(); 2119var app = builder.Build(); 2172var app = builder.Build(); 2220ConnectionDelegate connectionDelegate = async c => 2390var app = builder.Build(); 2464var app = builder.Build(); 2558var app = builder.Build(); 2620var app = builder.Build(); 2677var app = builder.Build(); 2736var app = builder.Build(); 2778var app = builder.Build(); 2828var app = builder.Build(); 2855var app = builder.Build(); 2885var app = builder.Build(); 2934var app = builder.Build(); 2966var app = builder.Build(); 3023var app = builder.Build(); 3078var app = builder.Build(); 3121var app = builder.Build(); 3155var app = builder.Build(); 3577var app = builder.Build(); 3708var app = builder.Build();
Microsoft.AspNetCore.Server.Kestrel.Core (21)
Internal\Infrastructure\TransportManager.cs (2)
36public async Task<EndPoint> BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig? endpointConfig, CancellationToken cancellationToken) 40throw new InvalidOperationException($"Cannot bind with {nameof(ConnectionDelegate)} no {nameof(IConnectionListenerFactory)} is registered.");
Internal\KestrelServerImpl.cs (3)
194var connectionDelegate = options.Build(); 428private static ConnectionDelegate EnforceConnectionLimit(ConnectionDelegate innerDelegate, long? connectionLimit, KestrelTrace trace, KestrelMetrics metrics)
ListenOptions.cs (10)
21private readonly List<Func<ConnectionDelegate, ConnectionDelegate>> _middleware = new List<Func<ConnectionDelegate, ConnectionDelegate>>(); 174public IConnectionBuilder Use(Func<ConnectionDelegate, ConnectionDelegate> middleware) 187/// Builds the <see cref="ConnectionDelegate"/>. 189/// <returns>The <see cref="ConnectionDelegate"/>.</returns> 190public ConnectionDelegate Build() 192ConnectionDelegate app = context =>
Middleware\HttpsConnectionMiddleware.cs (4)
31private readonly ConnectionDelegate _next; 53public HttpsConnectionMiddleware(ConnectionDelegate next, HttpsConnectionAdapterOptions options, HttpProtocols httpProtocols, KestrelMetrics metrics) 58public HttpsConnectionMiddleware(ConnectionDelegate next, HttpsConnectionAdapterOptions options, HttpProtocols httpProtocols, ILoggerFactory loggerFactory, KestrelMetrics metrics) 118ConnectionDelegate next,
Middleware\LoggingConnectionMiddleware.cs (2)
11private readonly ConnectionDelegate _next; 14public LoggingConnectionMiddleware(ConnectionDelegate next, ILogger logger)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
ListenOptionsTests.cs (1)
39var app = clone.Build();
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (2)
14private readonly ConnectionDelegate _next; 16public PassThroughConnectionMiddleware(ConnectionDelegate next)
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (2)
14private readonly ConnectionDelegate _next; 16public PassThroughConnectionMiddleware(ConnectionDelegate next)