IRealtimeClient 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表即時客戶。
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 指定類型的 |
擴充方法
| 名稱 | Description |
|---|---|
| AsBuilder(IRealtimeClient) |
創造一個新的 RealtimeClientBuilder 使用 |
| GetRequiredService(IRealtimeClient, Type, Object) |
會要求 需要 IRealtimeClient 指定類型的 |
| GetRequiredService<TService>(IRealtimeClient, Object) |
會請求 一個 IRealtimeClient 類型的 |
| GetService<TService>(IRealtimeClient, Object) |
請求 一個 IRealtimeClient 類型的 |