Class LiveMessagingClient
A class that inherits AuthorizedMessagingClient. Has a minimum behaviour of calling the required constructor parameter.
Through inheritance, the messaging client implementation requires an IAccessTokenProvider and connects to a server to send and/or receive messages.
Implements
Inherited Members
Unity.Cloud.Common.ServiceMessagingClient.ConnectAsync(System.Uri, Unity.Cloud.Common.ServiceMessagingClientOptions, System.Threading.CancellationToken)
Namespace: Unity.DigitalTwins.Live.Sdk.Abstractions
Assembly: solution.dll
Syntax
public class LiveMessagingClient : AuthorizedMessagingClient, IServiceMessagingClient, IDisposable
Constructors
LiveMessagingClient(IWebSocketClient, IAccessTokenProvider)
Creates an instance of LiveMessagingClient.
Declaration
public LiveMessagingClient(IWebSocketClient webSocketClient, IAccessTokenProvider accessTokenProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IWebSocketClient | webSocketClient | |
| IAccessTokenProvider | accessTokenProvider | The provider of access tokens. |