2 implementations of IConnectionBuilder
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionBuilder.cs (1)
14public class ConnectionBuilder : IConnectionBuilder
Microsoft.AspNetCore.Server.Kestrel.Core (1)
ListenOptions.cs (1)
17public class ListenOptions : IConnectionBuilder, IMultiplexedConnectionBuilder
40 references to IConnectionBuilder
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
87public static TBuilder UsePassThrough<TBuilder>(this TBuilder builder) where TBuilder : IConnectionBuilder
Microsoft.AspNetCore.Connections.Abstractions (27)
ConnectionBuilder.cs (2)
12/// A default implementation for <see cref="IConnectionBuilder"/>. 31public IConnectionBuilder Use(Func<ConnectionDelegate, ConnectionDelegate> middleware)
ConnectionBuilderExtensions.cs (23)
12/// <see cref="IConnectionBuilder"/> extensions. 20/// <param name="connectionBuilder">The <see cref="IConnectionBuilder"/>.</param> 21/// <returns>The <see cref="IConnectionBuilder"/>.</returns> 22public static IConnectionBuilder UseConnectionHandler<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TConnectionHandler>(this IConnectionBuilder connectionBuilder) where TConnectionHandler : ConnectionHandler 32/// If you aren't calling the next function, use <see cref="Run(IConnectionBuilder, Func{ConnectionContext, Task})"/> instead. 34/// Prefer using <see cref="Use(IConnectionBuilder, Func{ConnectionContext, ConnectionDelegate, Task})"/> for better performance as shown below: 43/// <param name="connectionBuilder">The <see cref="IConnectionBuilder"/>.</param> 44/// <param name="middleware">The middleware to add to the <see cref="IConnectionBuilder"/>.</param> 45/// <returns>The <see cref="IConnectionBuilder"/>.</returns> 46public static IConnectionBuilder Use(this IConnectionBuilder connectionBuilder, Func<ConnectionContext, Func<Task>, Task> middleware) 60/// If you aren't calling the next function, use <see cref="Run(IConnectionBuilder, Func{ConnectionContext, Task})"/> instead. 62/// <param name="connectionBuilder">The <see cref="IConnectionBuilder"/>.</param> 63/// <param name="middleware">The middleware to add to the <see cref="IConnectionBuilder"/>.</param> 64/// <returns>The <see cref="IConnectionBuilder"/>.</returns> 65public static IConnectionBuilder Use(this IConnectionBuilder connectionBuilder, Func<ConnectionContext, ConnectionDelegate, Task> middleware) 73/// <param name="connectionBuilder">The <see cref="IConnectionBuilder"/>.</param> 74/// <param name="middleware">The middleware to add to the <see cref="IConnectionBuilder"/>.</param> 75/// <returns>The <see cref="IConnectionBuilder"/>.</returns> 76public static IConnectionBuilder Run(this IConnectionBuilder connectionBuilder, Func<ConnectionContext, Task> middleware)
IConnectionBuilder.cs (2)
22/// <returns>The <see cref="IConnectionBuilder"/>.</returns> 23IConnectionBuilder Use(Func<ConnectionDelegate, ConnectionDelegate> middleware);
Microsoft.AspNetCore.Http.Connections (2)
ConnectionEndpointRouteBuilderExtensions.cs (2)
28public static ConnectionEndpointRouteBuilder MapConnections(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string pattern, Action<IConnectionBuilder> configure) => 83public static ConnectionEndpointRouteBuilder MapConnections(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string pattern, HttpConnectionDispatcherOptions options, Action<IConnectionBuilder> configure)
Microsoft.AspNetCore.Server.Kestrel.Core (4)
ListenOptions.cs (2)
173/// <returns>The <see cref="IConnectionBuilder"/>.</returns> 174public IConnectionBuilder Use(Func<ConnectionDelegate, ConnectionDelegate> middleware)
Middleware\HttpConnectionBuilderExtensions.cs (2)
11public static IConnectionBuilder UseHttpServer<TContext>(this IConnectionBuilder builder, ServiceContext serviceContext, IHttpApplication<TContext> application, HttpProtocols protocols, bool addAltSvcHeader) where TContext : notnull
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
87public static TBuilder UsePassThrough<TBuilder>(this TBuilder builder) where TBuilder : IConnectionBuilder
Microsoft.AspNetCore.SignalR.Core (4)
SignalRConnectionBuilderExtensions.cs (4)
11/// Extension methods for <see cref="IConnectionBuilder"/>. 20/// <returns>The same instance of the <see cref="IConnectionBuilder"/> for chaining.</returns> 21public static IConnectionBuilder UseHub<[DynamicallyAccessedMembers(Hub.DynamicallyAccessedMembers)] THub>(this IConnectionBuilder connectionBuilder) where THub : Hub
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
87public static TBuilder UsePassThrough<TBuilder>(this TBuilder builder) where TBuilder : IConnectionBuilder