Class EdgeRegistry.Client
- Namespace
- Azure.Iot.Operations.Services.EdgeRegistry.Generated
- Assembly
- Azure.Iot.Operations.Services.dll
public abstract class EdgeRegistry.Client : IAsyncDisposable
- Inheritance
-
EdgeRegistry.Client
- Implements
- Inherited Members
Constructors
Client(ApplicationContext, IMqttPubSubClient, Dictionary<string, string>?)
Construct a new instance of this client.
public Client(ApplicationContext applicationContext, IMqttPubSubClient mqttClient, Dictionary<string, string>? topicTokenMap = null)
Parameters
applicationContextApplicationContextThe shared context for your application.
mqttClientIMqttPubSubClientThe MQTT client to use.
topicTokenMapDictionary<string, string>The topic token replacement map to use for all operations by default. Generally, this will include the token values for topic tokens that should be the same for the duration of this client's lifetime.
Properties
CreateGroupActionInvoker
public EdgeRegistry.CreateGroupActionInvoker CreateGroupActionInvoker { get; }
Property Value
GetGroupActionInvoker
public EdgeRegistry.GetGroupActionInvoker GetGroupActionInvoker { get; }
Property Value
GetResourceActionInvoker
public EdgeRegistry.GetResourceActionInvoker GetResourceActionInvoker { get; }
Property Value
GetVersionActionInvoker
public EdgeRegistry.GetVersionActionInvoker GetVersionActionInvoker { get; }
Property Value
ListActionInvoker
public EdgeRegistry.ListActionInvoker ListActionInvoker { get; }
Property Value
Methods
CreateGroupAsync(GroupAttributes, CommandRequestMetadata?, Dictionary<string, string>?, TimeSpan?, CancellationToken)
Invoke a command.
public RpcCallAsync<Group> CreateGroupAsync(GroupAttributes request, CommandRequestMetadata? requestMetadata = null, Dictionary<string, string>? additionalTopicTokenMap = null, TimeSpan? commandTimeout = null, CancellationToken cancellationToken = default)
Parameters
requestGroupAttributesThe data for this command request.
requestMetadataCommandRequestMetadataThe metadata for this command request.
additionalTopicTokenMapDictionary<string, string>The topic token replacement map to use in addition to the topic tokens specified in the constructor. If this map contains any keys that the topic tokens specified in the constructor also has, then values specified in this map will take precedence.
commandTimeoutTimeSpan?How long the command will be available on the broker for an executor to receive.
cancellationTokenCancellationTokenCancellation token.
Returns
- RpcCallAsync<Group>
The command response.
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, CancellationToken)
public ValueTask DisposeAsync(bool disposing, CancellationToken cancellationToken = default)
Parameters
disposingboolcancellationTokenCancellationToken
Returns
GetGroupAsync(GetGroupInputArguments, CommandRequestMetadata?, Dictionary<string, string>?, TimeSpan?, CancellationToken)
Invoke a command.
public RpcCallAsync<Group> GetGroupAsync(GetGroupInputArguments request, CommandRequestMetadata? requestMetadata = null, Dictionary<string, string>? additionalTopicTokenMap = null, TimeSpan? commandTimeout = null, CancellationToken cancellationToken = default)
Parameters
requestGetGroupInputArgumentsThe data for this command request.
requestMetadataCommandRequestMetadataThe metadata for this command request.
additionalTopicTokenMapDictionary<string, string>The topic token replacement map to use in addition to the topic tokens specified in the constructor. If this map contains any keys that the topic tokens specified in the constructor also has, then values specified in this map will take precedence.
commandTimeoutTimeSpan?How long the command will be available on the broker for an executor to receive.
cancellationTokenCancellationTokenCancellation token.
Returns
- RpcCallAsync<Group>
The command response.
GetResourceAsync(CommandRequestMetadata?, Dictionary<string, string>?, TimeSpan?, CancellationToken)
Invoke a command.
public RpcCallAsync<Resource> GetResourceAsync(CommandRequestMetadata? requestMetadata = null, Dictionary<string, string>? additionalTopicTokenMap = null, TimeSpan? commandTimeout = null, CancellationToken cancellationToken = default)
Parameters
requestMetadataCommandRequestMetadataThe metadata for this command request.
additionalTopicTokenMapDictionary<string, string>The topic token replacement map to use in addition to the topic tokens specified in the constructor. If this map contains any keys that the topic tokens specified in the constructor also has, then values specified in this map will take precedence.
commandTimeoutTimeSpan?How long the command will be available on the broker for an executor to receive.
cancellationTokenCancellationTokenCancellation token.
Returns
- RpcCallAsync<Resource>
The command response.
GetVersionAsync(CommandRequestMetadata?, Dictionary<string, string>?, TimeSpan?, CancellationToken)
Invoke a command.
public RpcCallAsync<Version> GetVersionAsync(CommandRequestMetadata? requestMetadata = null, Dictionary<string, string>? additionalTopicTokenMap = null, TimeSpan? commandTimeout = null, CancellationToken cancellationToken = default)
Parameters
requestMetadataCommandRequestMetadataThe metadata for this command request.
additionalTopicTokenMapDictionary<string, string>The topic token replacement map to use in addition to the topic tokens specified in the constructor. If this map contains any keys that the topic tokens specified in the constructor also has, then values specified in this map will take precedence.
commandTimeoutTimeSpan?How long the command will be available on the broker for an executor to receive.
cancellationTokenCancellationTokenCancellation token.
Returns
- RpcCallAsync<Version>
The command response.
ListAsync(ListInputArguments, CommandRequestMetadata?, Dictionary<string, string>?, TimeSpan?, CancellationToken)
Invoke a command.
public RpcCallAsync<ListOutputArguments> ListAsync(ListInputArguments request, CommandRequestMetadata? requestMetadata = null, Dictionary<string, string>? additionalTopicTokenMap = null, TimeSpan? commandTimeout = null, CancellationToken cancellationToken = default)
Parameters
requestListInputArgumentsThe data for this command request.
requestMetadataCommandRequestMetadataThe metadata for this command request.
additionalTopicTokenMapDictionary<string, string>The topic token replacement map to use in addition to the topic tokens specified in the constructor. If this map contains any keys that the topic tokens specified in the constructor also has, then values specified in this map will take precedence.
commandTimeoutTimeSpan?How long the command will be available on the broker for an executor to receive.
cancellationTokenCancellationTokenCancellation token.
Returns
- RpcCallAsync<ListOutputArguments>
The command response.
StopAsync(CancellationToken)
Stop accepting telemetry for all telemetry receivers and make all command invokers unsubscribe from command topics.
public Task StopAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.