コード例 #1
0
ファイル: Route.cs プロジェクト: microsoft/playwright-sharp
 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);