Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ConnectionsRouteBuilder Class

Definition

Namespace:
Microsoft.AspNetCore.Http.Connections
Assembly:
Microsoft.AspNetCore.Http.Connections.dll
Package:
Microsoft.AspNetCore.Http.Connections v1.0.0
Package:
Microsoft.AspNetCore.Http.Connections v1.1.0
Package:
Microsoft.AspNetCore.App.Ref v3.0.1
Package:
Microsoft.AspNetCore.App.Ref v3.1.10
Source:
ConnectionsRouteBuilder.cs
Source:
ConnectionsRouteBuilder.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Caution

This class is obsolete and will be removed in a future version. The recommended alternative is to use MapConnection and MapConnectionHandler<TConnectionHandler> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).

Maps routes to ASP.NET Core Connection Handlers.

This class is obsolete and will be removed in a future version. The recommended alternative is to use MapConnection and MapConnectionHandler<TConnectionHandler> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).

public ref class ConnectionsRouteBuilder
public class ConnectionsRouteBuilder
[System.Obsolete("This class is obsolete and will be removed in a future version. The recommended alternative is to use MapConnection and MapConnectionHandler<TConnectionHandler> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).")]
public class ConnectionsRouteBuilder
type ConnectionsRouteBuilder = class
[<System.Obsolete("This class is obsolete and will be removed in a future version. The recommended alternative is to use MapConnection and MapConnectionHandler<TConnectionHandler> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).")>]
type ConnectionsRouteBuilder = class
Public Class ConnectionsRouteBuilder
Inheritance
ConnectionsRouteBuilder
Attributes

Methods

Name Description
MapConnectionHandler<TConnectionHandler>(PathString, Action<HttpConnectionDispatcherOptions>)

Maps incoming requests with the specified path to the provided connection pipeline.

MapConnectionHandler<TConnectionHandler>(PathString)

Maps incoming requests with the specified path to the provided connection pipeline.

MapConnections(PathString, Action<IConnectionBuilder>)

Maps incoming requests with the specified path to the provided connection pipeline.

MapConnections(PathString, HttpConnectionDispatcherOptions, Action<IConnectionBuilder>)

Maps incoming requests with the specified path to the provided connection pipeline.

Applies to


Feedback

Was this page helpful?