/// <summary> /// Creates a new Credential Store. /// </summary> /// <remarks> /// Required permissions: Settings.Create. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='credentialStoreDto'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CredentialStoreDto> PostAsync(this ICredentialStores operations, CredentialStoreDto credentialStoreDto, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.PostWithHttpMessagesAsync(credentialStoreDto, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }