ModuleClient.CreateFromEnvironmentAsync Method

Definition

Overloads

CreateFromEnvironmentAsync(ClientOptions)

Creates a ModuleClient instance in an IoT Edge deployment based on environment variables.

CreateFromEnvironmentAsync(ITransportSettings[], ClientOptions)

Creates a ModuleClient instance in an IoT Edge deployment based on environment variables.

CreateFromEnvironmentAsync(TransportType, ClientOptions)

Creates a ModuleClient instance in an IoT Edge deployment based on environment variables.

CreateFromEnvironmentAsync(ClientOptions)

Creates a ModuleClient instance in an IoT Edge deployment based on environment variables.

public static System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.ModuleClient> CreateFromEnvironmentAsync (Microsoft.Azure.Devices.Client.ClientOptions options = default);
static member CreateFromEnvironmentAsync : Microsoft.Azure.Devices.Client.ClientOptions -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.ModuleClient>
Public Shared Function CreateFromEnvironmentAsync (Optional options As ClientOptions = Nothing) As Task(Of ModuleClient)

Parameters

options
ClientOptions

The options that allow configuration of the module client instance during initialization.

Returns

Task<ModuleClient>

ModuleClient instance

Applies to

CreateFromEnvironmentAsync(ITransportSettings[], ClientOptions)

Creates a ModuleClient instance in an IoT Edge deployment based on environment variables.

public static System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.ModuleClient> CreateFromEnvironmentAsync (Microsoft.Azure.Devices.Client.ITransportSettings[] transportSettings, Microsoft.Azure.Devices.Client.ClientOptions options = default);
static member CreateFromEnvironmentAsync : Microsoft.Azure.Devices.Client.ITransportSettings[] * Microsoft.Azure.Devices.Client.ClientOptions -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.ModuleClient>
Public Shared Function CreateFromEnvironmentAsync (transportSettings As ITransportSettings(), Optional options As ClientOptions = Nothing) As Task(Of ModuleClient)

Parameters

transportSettings
ITransportSettings[]

Prioritized list of transports and their settings

options
ClientOptions

The options that allow configuration of the module client instance during initialization.

Returns

Task<ModuleClient>

ModuleClient instance

Applies to

CreateFromEnvironmentAsync(TransportType, ClientOptions)

Creates a ModuleClient instance in an IoT Edge deployment based on environment variables.

public static System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.ModuleClient> CreateFromEnvironmentAsync (Microsoft.Azure.Devices.Client.TransportType transportType, Microsoft.Azure.Devices.Client.ClientOptions options = default);
static member CreateFromEnvironmentAsync : Microsoft.Azure.Devices.Client.TransportType * Microsoft.Azure.Devices.Client.ClientOptions -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.ModuleClient>
Public Shared Function CreateFromEnvironmentAsync (transportType As TransportType, Optional options As ClientOptions = Nothing) As Task(Of ModuleClient)

Parameters

transportType
TransportType

Specifies whether AMQP or HTTP transport is used

options
ClientOptions

The options that allow configuration of the module client instance during initialization.

Returns

Task<ModuleClient>

ModuleClient instance

Applies to