public void Dispose() { if (_ddbcontext != null) { _ddbcontext.Dispose(); } }
protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { _dynamoContext.Dispose(); } } this.disposed = true; }
/// <inheritdoc/> public void Dispose() { _dynamoDBContext?.Dispose(); }
//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(); }