Пример #1
0
        protected override async Task <Secret> OnGetAsync(string id, bool shallow)
        {
            if (shallow)
            {
                var secret = await DataAccessProvider.GetSecretAsync(id, CancellationToken);

                if (null == secret)
                {
                    return(null);
                }

                return(secret.ToConfiguredSecret());
            }
            else
            {
                return(await DataAccessProvider.GetConfiguredSecretAsync(id, CancellationToken));
            }
        }