Skip to content

IDurableLog<T>.TryGet(long, T)

TryGet(long, T)

abstract
public abstract bool TryGet(long sequence, out T item)
Attempts to get the retained entry with the specified sequence number.

Parameters

sequencelong
The entry's sequence number.
itemT
The entry, if retained.

Returns

true if the log retains an entry with sequence; otherwise, false.