TaskStream.GetLastEventIdAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the most recently assigned event id.
public virtual System.Threading.Tasks.ValueTask<string?> GetLastEventIdAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetLastEventIdAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
override this.GetLastEventIdAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
Public Overridable Function GetLastEventIdAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of String)
Parameters
- cancellationToken
- CancellationToken
A token to cancel the operation.
Returns
The most recently assigned event id, or null.