Class AuthorizedMessagingClient
An abstract class that inherits Unity.Cloud.Common.ServiceMessagingClient.
Makes the IAccessTokenProvider constructor parameter required and removes the unused IAppIdProvider constructor parameter.
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 abstract class AuthorizedMessagingClient : ServiceMessagingClient, IServiceMessagingClient, IDisposable
Constructors
AuthorizedMessagingClient(IWebSocketClient, IAccessTokenProvider)
Creates an instance of AuthorizedMessagingClient.
Declaration
protected AuthorizedMessagingClient(IWebSocketClient webSocketClient, IAccessTokenProvider accessTokenProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IWebSocketClient | webSocketClient | |
| IAccessTokenProvider | accessTokenProvider | The provider of access tokens. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Exception is thrown if the provided |