Esempio n. 1
0
 protected async Task Delete(Key key)
 {
     try
     {
         await _db.DeleteAsync(key);
     }
     catch (Exception ex)
     {
         var exceptionMsg = $"{GetType().FullName}.Delete experienced a {ex.GetType()}";
         _logger.LogError(ex, exceptionMsg);
         throw new Exception(exceptionMsg, ex);
     }
 }
Esempio n. 2
0
 public virtual Task DeleteAsync(Key key)
 {
     return(datastoreDb.DeleteAsync(key));
 }
        private async Task <bool> DeleteGameState(GameState item)
        {
            await _db.DeleteAsync(_keyFactory.CreateKey(item.PlatformKey));

            return(true);
        }
 public async Task DeleteOneAsync(TKey id)
 {
     var key = BuildKey(id);
     await _database.DeleteAsync(key);
 }
 public async Task <IdentityResult> DeleteAsync(R role, CancellationToken cancellationToken)
 {
     return(await Rpc.TranslateExceptionsAsync(() =>
                                               _datastore.DeleteAsync(KeyFromRoleId(role.Id), CallSettings.FromCancellationToken(cancellationToken))));
 }
 protected async Task DeleteRootEntity(string persistenceId)
 {
     await _db.DeleteAsync(RootKey(persistenceId));
 }
        public async Task Delete(string username)
        {
            User targetUser = await this.Read(username);

            await _db.DeleteAsync(targetUser?.Id.ToUserKey());
        }
Esempio n. 8
0
 public async Task DeleteAsync(TKey id)
 {
     var key = BuildKey(id);
     await _db.DeleteAsync(key);
 }
        public async Task Delete(string name)
        {
            Role targetRole = await this.Read(name);

            await _db.DeleteAsync(targetRole?.Id.ToUserKey());
        }
Esempio n. 10
0
 public async Task Delete(long id)
 {
     await _db.DeleteAsync(id.ToSpotKey());
 }