PlaywrightServiceBrowserClient.GetConnectOptionsAsync<T> 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.
Gets the connect options for connecting to Playwright Workspaces's cloud hosted browsers.
public virtual System.Threading.Tasks.Task<Azure.Developer.Playwright.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();
abstract member GetConnectOptionsAsync : Nullable<System.Runtime.InteropServices.OSPlatform> * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Developer.Playwright.ConnectOptions<'T>> (requires 'T : null and 'T : (new : unit -> 'T))
override this.GetConnectOptionsAsync : Nullable<System.Runtime.InteropServices.OSPlatform> * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Developer.Playwright.ConnectOptions<'T>> (requires 'T : null and 'T : (new : unit -> 'T))
Public Overridable 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.