Udostępnij za pośrednictwem


FabricClient.SecretStoreClient.SetSecretsAsync Method

Definition

Asynchronously set secrets in Central Secret store.

public System.Threading.Tasks.Task<System.Fabric.SecretStore.Secret[]> SetSecretsAsync (System.Fabric.SecretStore.Secret[] secrets, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.SetSecretsAsync : System.Fabric.SecretStore.Secret[] * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.SecretStore.Secret[]>
Public Function SetSecretsAsync (secrets As Secret(), timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of Secret())

Parameters

secrets
Secret[]

List of secrets to set.

timeout
TimeSpan

Max time wait for the async operation to complete

cancellationToken
CancellationToken

The CancellationToken object that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation may still be completed even if it is canceled.

Returns

The task representing the asynchronous action.

Applies to