IAsyncObserver<T>.OnErrorAsync(Exception) 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.
Notifies the consumer that the stream had an error.
The Task returned from this method should be completed when the consumer is done processing the stream closure.
public System.Threading.Tasks.Task OnErrorAsync (Exception ex);
abstract member OnErrorAsync : Exception -> System.Threading.Tasks.Task
Public Function OnErrorAsync (ex As Exception) As Task
Parameters
- ex
- Exception
An Exception that describes the error that occurred on the stream.
Returns
A Task that is completed when the close has been accepted.