WorkloadOrchestrationExtensions.GetEdgeContext Method

Definition

Get Context Resource <item> Mocking. To mock this method, please mock GetEdgeContext(String, CancellationToken) instead. </item>

public static Azure.Response<Azure.ResourceManager.WorkloadOrchestration.EdgeContextResource> GetEdgeContext(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string contextName, System.Threading.CancellationToken cancellationToken = default);
static member GetEdgeContext : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.WorkloadOrchestration.EdgeContextResource>
<Extension()>
Public Function GetEdgeContext (resourceGroupResource As ResourceGroupResource, contextName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of EdgeContextResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

contextName
String

The name of the Context.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

contextName is an empty string, and was expected to be non-empty.

resourceGroupResource is null.

Applies to