共用方式為


ClientOptions Class

Definition

Options that allow configuration of the device or module client instance during initialization.

public class ClientOptions
type ClientOptions = class
Public Class ClientOptions
Inheritance
ClientOptions

Constructors

ClientOptions()

Properties

FileUploadTransportSettings

The transport settings to use for all file upload operations, regardless of what protocol the device client is configured with. All file upload operations take place over https. If FileUploadTransportSettings is not provided, then file upload operations will use the same client certificates configured in the transport settings set for client connect.

ModelId

The DTDL model Id associated with the device or module client instance. This feature is currently supported only over MQTT and AMQP.

SasTokenRenewalBuffer

The time buffer before expiry when the token should be renewed, expressed as a percentage of the time to live. Acceptable values lie between 0 and 100 (including the endpoints). Eg. if set to a value of 30, the token will be renewed when it has 30% or less of its lifespan left. If unset the token will be renewed when it has 15% or less of its lifespan left.

SasTokenTimeToLive

The suggested time to live value for tokens generated for SAS authenticated clients. The TimeSpan provided should be a positive value, signifying that it is not possible to generate tokens that have already expired. If unset the generated SAS tokens will be valid for 1 hour.

SdkAssignsMessageId

The configuration for setting MessageId for every message sent by the device or module client instance. The default behavior is that MessageId is set only by the user.

Applies to