protected override async Task <IEnumerable <Secret> > OnGetAllAsync(bool shallow) { if (shallow) { var secrets = await DataAccessProvider.GetSecretsAsync(CancellationToken); if (null == secrets) { return(null); } List <Secret> items = new List <Secret>(); foreach (var secret in secrets) { if (null != secret) { if (secret is Secret) { items.Add(secret as Secret); } else { items.Add(secret.ToConfiguredSecret()); } } } return(items); } else { return(await DataAccessProvider.GetConfiguredSecretsAsync(CancellationToken)); } }