DigitalTwinClient Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This client contains methods to retrieve and update digital twin information, and invoke commands on a digital twin device.
public class DigitalTwinClient : IDisposable
type DigitalTwinClient = class
interface IDisposable
Public Class DigitalTwinClient
Implements IDisposable
- Inheritance
-
DigitalTwinClient
- Implements
For more information, see https://github.com/Azure/azure-iot-sdk-csharp#iot-hub-service-sdk.
This client creates lifetime long instances of HttpClient that are tied to the URI of the IoT hub specified, configure any proxy settings, and connection lease timeout. For that reason, the instances are not static and an application using this client should create and save it for all use. Repeated creation may cause socket exhaustion.
Digital |
Creates an instance of DigitalTwinClient, provided for unit testing purposes only. |
Create(String, Azure |
Creates DigitalTwinClient using a shared access signature provided and refreshed as necessary by the caller. |
Create(String, Token |
Creates DigitalTwinClient, authenticating using an identity in Azure Active Directory (AAD). |
Create |
Creates DigitalTwinClient from an IoT hub connection string. |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Dispose(Boolean) |
Releases unmanaged and - optionally - managed resources. |
Get |
Gets a strongly-typed digital twin. |
Invoke |
Invoke a command on a digital twin. |
Invoke |
Invoke a command on a component of a digital twin. |
Update |
Updates a digital twin. |
Product | Versies |
---|---|
Azure SDK for .NET | Latest |
Azure SDK for .NET-feedback
Azure SDK for .NET is een open source project. Selecteer een koppeling om feedback te geven: