Language

DeviceUpdateClientHostExtensions.AddDeviceUpdateClient Method

Definition

Overloads

AddDeviceUpdateClient(IHostApplicationBuilder, String)

Source:
DeviceUpdateClientHostExtensions.cs

Adds a singleton DeviceUpdateClient to the IHostApplicationBuilder's service collection.

public static System.ClientModel.Primitives.IClientBuilder AddDeviceUpdateClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, string sectionName);
static member AddDeviceUpdateClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string -> System.ClientModel.Primitives.IClientBuilder
<Extension()>
Public Function AddDeviceUpdateClient (host As IHostApplicationBuilder, sectionName As String) As IClientBuilder

Parameters

sectionName
String

The section of IConfiguration to use.

Returns

An IClientBuilder that can be used to further configure the client.

Applies to

AddDeviceUpdateClient(IHostApplicationBuilder, String, Action<DeviceUpdateClientSettings>)

Source:
DeviceUpdateClientHostExtensions.cs

Adds a singleton DeviceUpdateClient to the IHostApplicationBuilder's service collection.

public static System.ClientModel.Primitives.IClientBuilder AddDeviceUpdateClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, string sectionName, Action<Azure.IoT.DeviceUpdate.DeviceUpdateClientSettings> configureSettings);
static member AddDeviceUpdateClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * Action<Azure.IoT.DeviceUpdate.DeviceUpdateClientSettings> -> System.ClientModel.Primitives.IClientBuilder
<Extension()>
Public Function AddDeviceUpdateClient (host As IHostApplicationBuilder, sectionName As String, configureSettings As Action(Of DeviceUpdateClientSettings)) As IClientBuilder

Parameters

sectionName
String

The section of IConfiguration to use.

configureSettings
Action<DeviceUpdateClientSettings>

Factory method to modify the DeviceUpdateClientSettings after they are created.

Returns

An IClientBuilder that can be used to further configure the client.

Applies to