Table of Contents

Class DiscoveredAssetResourcesClient

Namespace
Azure.Iot.Operations.Services.Akri
Assembly
Azure.Iot.Operations.Services.dll
public class DiscoveredAssetResourcesClient : IDiscoveredAssetResourcesClient, IAsyncDisposable
Inheritance
DiscoveredAssetResourcesClient
Implements
Inherited Members

Constructors

DiscoveredAssetResourcesClient(ApplicationContext, IMqttPubSubClient)

public DiscoveredAssetResourcesClient(ApplicationContext applicationContext, IMqttPubSubClient pubSubClient)

Parameters

applicationContext ApplicationContext
pubSubClient IMqttPubSubClient

Methods

CreateDiscoveredAssetAsync(CreateDiscoveredAssetRequestPayload, TimeSpan?, CancellationToken)

Creates a discovered asset based on the specified request details.

public Task<CreateDiscoveredAssetResponseSchema?> CreateDiscoveredAssetAsync(CreateDiscoveredAssetRequestPayload discoveredAssetCommandRequest, TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

discoveredAssetCommandRequest CreateDiscoveredAssetRequestPayload
timeout TimeSpan?

An optional timeout for the operation, which defines how long the method should wait before timing out.

cancellationToken CancellationToken

A token that can be used to cancel the operation before completion if needed.

Returns

Task<CreateDiscoveredAssetResponseSchema>

A task that represents the asynchronous operation. The task result contains an CreateDiscoveredAssetResponseSchema object if the asset creation succeeds, or null if the operation fails or no response is available.

CreateDiscoveredAssetEndpointProfileAsync(CreateDiscoveredAssetEndpointProfileRequestPayload, TimeSpan?, CancellationToken)

Creates a discovered asset endpoint profile based on the specified request details.

public Task<CreateDiscoveredAssetEndpointProfileResponseSchema?> CreateDiscoveredAssetEndpointProfileAsync(CreateDiscoveredAssetEndpointProfileRequestPayload discoveredAssetEndpointProfileCommandRequest, TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

discoveredAssetEndpointProfileCommandRequest CreateDiscoveredAssetEndpointProfileRequestPayload
timeout TimeSpan?

An optional timeout for the operation, which specifies the maximum time allowed for the request to complete.

cancellationToken CancellationToken

A token that can be used to cancel the operation before completion if needed.

Returns

Task<CreateDiscoveredAssetEndpointProfileResponseSchema>

A task that represents the asynchronous operation. The task result contains an CreateDiscoveredAssetEndpointProfileResponseSchema object if the asset endpoint profile is successfully created, or null if the operation fails or no response is available.

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

public ValueTask DisposeAsync()

Returns

ValueTask

A task that represents the asynchronous dispose operation.

DisposeAsync(bool)

public ValueTask DisposeAsync(bool disposing)

Parameters

disposing bool

Returns

ValueTask