protected override async Task <IEnumerable <SecretConfiguration> > OnGetAllAsync(bool shallow) { if (shallow) { var services = await DataAccessProvider.GetConfigurationsAsync(CancellationToken); if (null == services) { return(null); } List <SecretConfiguration> items = new List <SecretConfiguration>(); foreach (var service in services) { items.Add(service.ToSecretConfiguration()); } return(items); } else { return(await DataAccessProvider.GetSecretConfigurationsAsync(CancellationToken)); } }