Dela via


FabricClient.SecretStoreClient.CreateSecretsAsync Method

Definition

Asynchronously create secret resource in Central Secret store.

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

Parameters

secrets
SecretDescription[]

List of secrets to create.

timeout
TimeSpan

Max time to 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