Bagikan melalui


HttpConnectionFactory Kelas

Definisi

Pabrik untuk membuat HttpConnection instans.

public ref class HttpConnectionFactory : Microsoft::AspNetCore::SignalR::Client::IConnectionFactory
public class HttpConnectionFactory : Microsoft.AspNetCore.SignalR.Client.IConnectionFactory
type HttpConnectionFactory = class
    interface IConnectionFactory
Public Class HttpConnectionFactory
Implements IConnectionFactory
Warisan
HttpConnectionFactory
Penerapan

Konstruktor

HttpConnectionFactory(IOptions<HttpConnectionOptions>, ILoggerFactory)

Menginisialisasi instans baru kelas HttpConnectionFactory.

Metode

ConnectAsync(TransferFormat, CancellationToken)

Membuat koneksi baru ke server SignalR menggunakan yang ditentukan TransferFormat.

DisposeAsync(ConnectionContext)

Buang yang ditentukan ConnectionContext.

Berlaku untuk