Esempio n. 1
0
 public void Dispose()
 {
     if (_ddbcontext != null)
     {
         _ddbcontext.Dispose();
     }
 }
Esempio n. 2
0
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             _dynamoContext.Dispose();
         }
     }
     this.disposed = true;
 }
Esempio n. 3
0
 /// <inheritdoc/>
 public void Dispose()
 {
     _dynamoDBContext?.Dispose();
 }
Esempio n. 4
0
        //public async Task DeleteTable()
        //{
        //    var tables = (await _client.ListTablesAsync()).TableNames;
        //    if (tables.Contains("GameTable"))
        //    {
        //        var request = new DeleteTableRequest("GameTable");
        //        var response = await _client.DeleteTableAsync(request);
        //        Console.Write(response.HttpStatusCode.ToString());
        ////    }
        ////}

        public void Dispose()
        {
            _context.Dispose();
            _client.Dispose();
        }