ConnectionBuilder Class
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.
A default implementation for IConnectionBuilder.
public ref class ConnectionBuilder : Microsoft::AspNetCore::Connections::IConnectionBuilder
public class ConnectionBuilder : Microsoft.AspNetCore.Connections.IConnectionBuilder
type ConnectionBuilder = class
interface IConnectionBuilder
Public Class ConnectionBuilder
Implements IConnectionBuilder
- Inheritance
-
ConnectionBuilder
- Implements
Connection |
Initializes a new instance of ConnectionBuilder. |
Application |
Gets the IServiceProvider that provides access to the application's service container. |
Build() |
Builds the delegate used by this application to process connections. |
Use(Func<Connection |
Adds a middleware delegate to the application's connection pipeline. |
Run(IConnection |
Add the given |
Use(IConnection |
Add the given |
Use(IConnection |
Add the given Prefer using Use(IConnectionBuilder, Func<ConnectionContext,ConnectionDelegate,Task>) for better performance as shown below:
|
Use |
Use the given |
Use |
Configure the connection to host the specified Hub type. |
منتج | الإصدارات |
---|---|
ASP.NET Core | 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |