public async Task <uint> GetLastKeyAsync(CancellationToken cancel = new CancellationToken()) { var sw = Stopwatch.StartNew(); try { return(await Inner.GetLastKeyAsync(cancel)); } finally { Trace.WriteLine("GetLastKeyAsync " + sw.ElapsedMilliseconds); } }
public Task <uint> GetLastKeyAsync(CancellationToken cancel = new CancellationToken()) => Wrapped.GetLastKeyAsync(cancel);
/// <summary> Return the last written sequence in the output stream. </summary> public async Task <uint> LastWrittenAsync(CancellationToken cancel = default(CancellationToken)) { return((uint)(_sequence ?? (_sequence = await _driver.GetLastKeyAsync(cancel).ConfigureAwait(false)))); }
/// <see cref="IStorageDriver.GetLastKeyAsync"/> public Task <uint> GetLastKeyAsync(CancellationToken cancel = new CancellationToken()) => _source.GetLastKeyAsync(cancel);