Example #1
0
        public async Task <bool> GetUserAgreementAsync(string clientId)
        {
            var key       = EthererumPendingActionEntity.UserAgreementKey(clientId);
            var agreement = await _tableStorage.GetDataAsync(key, key);

            return(agreement != null);
        }
Example #2
0
        public async Task CompleteAsync(string clientId, string operationId)
        {
            var entity = EthererumPendingActionEntity.CreateCompleted(clientId, operationId);

            await _tableStorage.InsertAsync(entity);

            await _tableStorage.DeleteIfExistAsync(clientId, operationId);
        }
Example #3
0
        public async Task SetUserAgreementAsync(string clientId)
        {
            var entity = EthererumPendingActionEntity.CreateUserAgreement(clientId);

            await _tableStorage.InsertAsync(entity);
        }