語言

IRealtimeClient 介面

定義

代表即時客戶。

public interface class IRealtimeClient : IDisposable
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public interface IRealtimeClient : IDisposable
public interface IRealtimeClient : IDisposable
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type IRealtimeClient = interface
    interface IDisposable
type IRealtimeClient = interface
    interface IDisposable
Public Interface IRealtimeClient
Implements IDisposable
衍生
屬性
實作

備註

此介面提供建立和管理即時會話的方法。

方法

名稱 Description
CreateSessionAsync(RealtimeSessionOptions, CancellationToken)

建立一個新的即時會話,包含指定的選項。

Dispose()

執行與釋放、釋放或重設非受控資源相關聯的應用程式定義工作。

(繼承來源 IDisposable)
GetService(Type, Object)

請求 給 IRealtimeClient 指定類型的 serviceType物件。

擴充方法

名稱 Description
AsBuilder(IRealtimeClient)

創造一個新的 RealtimeClientBuilder 使用 innerClient ,作為其內在客戶。

GetRequiredService(IRealtimeClient, Type, Object)

會要求 需要 IRealtimeClient 指定類型的 serviceType 物件,若無法使用則拋出例外。

GetRequiredService<TService>(IRealtimeClient, Object)

會請求 一個 IRealtimeClient 類型的 TService 物件,若無法使用則拋出例外。

GetService<TService>(IRealtimeClient, Object)

請求 一個 IRealtimeClient 類型的 TService物件。

適用於