예제 #1
0
 public Task AbortAsync(string errorCode = RequestAbortErrorCode.Failed) => RaceWithPageCloseAsync(_channel.AbortAsync(errorCode));
예제 #2
0
 /// <summary>
 /// Aborts the route's request.
 /// </summary>
 /// <param name="errorCode">Optional error code.</param>
 /// <returns>A <see cref="Task"/> that completes when the message was sent.</returns>
 public Task AbortAsync(RequestAbortErrorCode errorCode = RequestAbortErrorCode.Failed) => _channel.AbortAsync(errorCode);