Esempio n. 1
0
        public async Task StoreAsync(PersistedGrant grant)
        {
            Guard.ArgumentNotNull(nameof(grant), grant);
            var document = grant.ToPersistedGrantCosmosDocument();
            var response = await _simpleItemDbContext.UpsertItemAsync(document);

            if (!response.StatusCode.IsSuccess())
            {
                _logger.LogError($"StatusCode={response.StatusCode}");
            }
        }