Udostępnij za pośrednictwem


PlaywrightService.GetConnectOptionsAsync<T> Method

Definition

Gets the connect options for connecting to Playwright Service's cloud hosted browsers.

public System.Threading.Tasks.Task<Azure.Developer.MicrosoftPlaywrightTesting.TestLogger.ConnectOptions<T>> GetConnectOptionsAsync<T> (System.Runtime.InteropServices.OSPlatform? os = default, string? runId = default, string? exposeNetwork = default, System.Threading.CancellationToken cancellationToken = default) where T : class, new();
member this.GetConnectOptionsAsync : Nullable<System.Runtime.InteropServices.OSPlatform> * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Developer.MicrosoftPlaywrightTesting.TestLogger.ConnectOptions<'T>> (requires 'T : null and 'T : (new : unit -> 'T))
Public Function GetConnectOptionsAsync(Of T As {Class, New}) (Optional os As Nullable(Of OSPlatform) = Nothing, Optional runId As String = Nothing, Optional exposeNetwork As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConnectOptions(Of T))

Type Parameters

T

The type of the connect options.

Parameters

os
Nullable<OSPlatform>

The operating system.

runId
String

The run ID.

exposeNetwork
String

The network exposure.

cancellationToken
CancellationToken

Cancellation token.

Returns

The connect options.

Applies to