Language

DeviceUpdateClientHostExtensions.AddKeyedDeviceUpdateClient Method

Definition

Overloads

AddKeyedDeviceUpdateClient(IHostApplicationBuilder, String, String)

Source:
DeviceUpdateClientHostExtensions.cs

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

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

Parameters

key
String

The unique key to register as.

sectionName
String

The section of IConfiguration to use.

Returns

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

Applies to

AddKeyedDeviceUpdateClient(IHostApplicationBuilder, String, String, Action<DeviceUpdateClientSettings>)

Source:
DeviceUpdateClientHostExtensions.cs

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

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

Parameters

key
String

The unique key to register as.

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