public async Task <bool> AcquireLock(string key) { if (await _hashTable.Exists(key)) { return(false); } await _hashTable.Set(key, DateTime.UtcNow); return(true); }
public async Task SetShipAsync(Ship ship) { try { await _table.Set(ship.Id, ship); } catch (Exception e) { Console.WriteLine(e); throw; } }