Method OnErrorAsync
OnErrorAsync(Exception, CancellationToken)
Called when an error occurs during streaming.
public Task OnErrorAsync(Exception exception, CancellationToken cancellationToken = default)
Parameters
exceptionExceptionThe exception that occurred.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task
A task representing the async operation.