/// <summary>
 /// Creates a ModuleClient instance in an IoT Edge deployment
 /// based on environment variables.
 /// </summary>
 /// <param name="transportType">Specifies whether AMQP or HTTP transport is used</param>
 /// <param name="options">The options that allow configuration of the module client instance during initialization.</param>
 /// <returns>ModuleClient instance</returns>
 public static Task <ModuleClient> CreateFromEnvironmentAsync(TransportType transportType, ClientOptions options = default)
 {
     return(CreateFromEnvironmentAsync(ClientFactory.GetTransportSettings(transportType), options));
 }
Example #2
0
 /// <summary>
 /// Creates a ModuleClient instance in an IoT Edge deployment
 /// based on environment variables.
 /// </summary>
 /// <param name="transportType">Specifies whether Amqp or Http transport is used</param>
 /// <returns>ModuleClient instance</returns>
 public static Task <ModuleClient> CreateFromEnvironmentAsync(TransportType transportType)
 {
     return(CreateFromEnvironmentAsync(ClientFactory.GetTransportSettings(transportType)));
 }