HubConnectionBuilder HubConnectionBuilder HubConnectionBuilder Class

Definition

A builder for configuring HubConnection instances.

public class HubConnectionBuilder : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder, Microsoft.AspNetCore.SignalR.ISignalRBuilder
type HubConnectionBuilder = class
    interface IHubConnectionBuilder
    interface ISignalRBuilder
Public Class HubConnectionBuilder
Implements IHubConnectionBuilder, ISignalRBuilder
Inheritance
HubConnectionBuilderHubConnectionBuilderHubConnectionBuilder
Implements

Constructors

HubConnectionBuilder() HubConnectionBuilder() HubConnectionBuilder()

Initializes a new instance of the HubConnectionBuilder class.

Properties

Services Services Services

Methods

Build() Build() Build()
Equals(Object) Equals(Object) Equals(Object)
GetHashCode() GetHashCode() GetHashCode()
GetType() GetType() GetType()
ToString() ToString() ToString()

Extension Methods

ConfigureLogging(IHubConnectionBuilder, Action<ILoggingBuilder>) ConfigureLogging(IHubConnectionBuilder, Action<ILoggingBuilder>) ConfigureLogging(IHubConnectionBuilder, Action<ILoggingBuilder>)

Adds a delegate for configuring the provided ILoggingBuilder. This may be called multiple times.

WithUrl(IHubConnectionBuilder, String) WithUrl(IHubConnectionBuilder, String) WithUrl(IHubConnectionBuilder, String)

Configures the HubConnection to use HTTP-based transports to connect to the specified URL.

WithUrl(IHubConnectionBuilder, String, HttpTransportType) WithUrl(IHubConnectionBuilder, String, HttpTransportType) WithUrl(IHubConnectionBuilder, String, HttpTransportType)

Configures the HubConnection to use HTTP-based transports to connect to the specified URL and transports.

WithUrl(IHubConnectionBuilder, String, HttpTransportType, Action<HttpConnectionOptions>) WithUrl(IHubConnectionBuilder, String, HttpTransportType, Action<HttpConnectionOptions>) WithUrl(IHubConnectionBuilder, String, HttpTransportType, Action<HttpConnectionOptions>)

Configures the HubConnection to use HTTP-based transports to connect to the specified URL and transports.

WithUrl(IHubConnectionBuilder, String, Action<HttpConnectionOptions>) WithUrl(IHubConnectionBuilder, String, Action<HttpConnectionOptions>) WithUrl(IHubConnectionBuilder, String, Action<HttpConnectionOptions>)

Configures the HubConnection to use HTTP-based transports to connect to the specified URL.

WithUrl(IHubConnectionBuilder, Uri) WithUrl(IHubConnectionBuilder, Uri) WithUrl(IHubConnectionBuilder, Uri)

Configures the HubConnection to use HTTP-based transports to connect to the specified URL.

WithUrl(IHubConnectionBuilder, Uri, HttpTransportType) WithUrl(IHubConnectionBuilder, Uri, HttpTransportType) WithUrl(IHubConnectionBuilder, Uri, HttpTransportType)

Configures the HubConnection to use HTTP-based transports to connect to the specified URL and transports.

WithUrl(IHubConnectionBuilder, Uri, HttpTransportType, Action<HttpConnectionOptions>) WithUrl(IHubConnectionBuilder, Uri, HttpTransportType, Action<HttpConnectionOptions>) WithUrl(IHubConnectionBuilder, Uri, HttpTransportType, Action<HttpConnectionOptions>)

Configures the HubConnection to use HTTP-based transports to connect to the specified URL and transports.

WithUrl(IHubConnectionBuilder, Uri, Action<HttpConnectionOptions>) WithUrl(IHubConnectionBuilder, Uri, Action<HttpConnectionOptions>) WithUrl(IHubConnectionBuilder, Uri, Action<HttpConnectionOptions>)

Configures the HubConnection to use HTTP-based transports to connect to the specified URL.

WithMessagePackProtocol(IHubConnectionBuilder) WithMessagePackProtocol(IHubConnectionBuilder) WithMessagePackProtocol(IHubConnectionBuilder)
WithMessagePackProtocol(IHubConnectionBuilder, MessagePackHubProtocolOptions) WithMessagePackProtocol(IHubConnectionBuilder, MessagePackHubProtocolOptions) WithMessagePackProtocol(IHubConnectionBuilder, MessagePackHubProtocolOptions)
AddMessagePackProtocol(ISignalRBuilder) AddMessagePackProtocol(ISignalRBuilder) AddMessagePackProtocol(ISignalRBuilder)

Enables the MsgPack protocol for SignalR.

AddMessagePackProtocol(ISignalRBuilder, Action<MessagePackHubProtocolOptions>) AddMessagePackProtocol(ISignalRBuilder, Action<MessagePackHubProtocolOptions>) AddMessagePackProtocol(ISignalRBuilder, Action<MessagePackHubProtocolOptions>)

Enables the MsgPack protocol for SignalR and allows options for the MsgPack protocol to be configured.

Applies to