public async Task <RootTokenGenerationStatus> QuickRootTokenGenerationAsync(string[] thresholdMasterShareKeys, string nonce) { RootTokenGenerationStatus finalStatus = null; foreach (var masterShareKey in thresholdMasterShareKeys) { finalStatus = await ContinueRootTokenGenerationAsync(masterShareKey, nonce); // don't continue, once threshold keys are achieved. if (finalStatus.Complete) { break; } } return(finalStatus); }
public async Task <RootTokenGenerationStatus> QuickRootTokenGenerationAsync(string[] thresholdMasterShareKeys, string nonce) { RootTokenGenerationStatus finalStatus = null; foreach (var masterShareKey in thresholdMasterShareKeys) { finalStatus = await ContinueRootTokenGenerationAsync(masterShareKey, nonce).ConfigureAwait(_polymath.VaultClientSettings.ContinueAsyncTasksOnCapturedContext); // don't continue, once threshold keys are achieved. if (finalStatus.Complete) { break; } } return(finalStatus); }