Пример #1
0
        public async Task <IExternalToken> GetAsync(string externalTokenAddress)
        {
            var token = await _table.GetDataAsync(ExternalTokenEntity.GeneratePartitionKey(), externalTokenAddress);

            return(token);
        }
Пример #2
0
        public async Task SaveAsync(IExternalToken token)
        {
            var entity = ExternalTokenEntity.CreateEntity(token);

            await _table.InsertAsync(entity);
        }
Пример #3
0
        public async Task <IEnumerable <IExternalToken> > GetAllAsync()
        {
            IEnumerable <IExternalToken> tokens = await _table.GetDataAsync(ExternalTokenEntity.GeneratePartitionKey());

            return(tokens);
        }