Share via


ClientFactory.CreateClient Method

Definition

Overloads

CreateClient<TClient>(IAzureContextContainer, IAzureSubscription, String)

Creates the client.

CreateClient<TClient>(IAzureContextContainer, String)
CreateClient<TClient>(IAzureContextContainer, IAzureSubscription, String)
CreateClient<TClient>(IAzureContextContainer, String)
CreateClient<TClient>(IAzureContext, String)

CreateClient<TClient>(IAzureContextContainer, IAzureSubscription, String)

Creates the client.

public virtual TClient CreateClient<TClient> (Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer profile, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription subscription, string endpoint) where TClient : Hyak.Common.ServiceClient<TClient>;
abstract member CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
override this.CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
Public Overridable Function CreateClient(Of TClient As ServiceClient(Of TClient)) (profile As IAzureContextContainer, subscription As IAzureSubscription, endpoint As String) As TClient

Type Parameters

TClient

The type of the client.

Parameters

profile
IAzureContextContainer

The profile.

subscription
IAzureSubscription

The subscription.

endpoint
String

The endpoint.

Returns

TClient

Implements

Exceptions

accountName or environment

Applies to

CreateClient<TClient>(IAzureContextContainer, String)

public virtual TClient CreateClient<TClient> (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer container, string endpoint) where TClient : Hyak.Common.ServiceClient<TClient>;
abstract member CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
override this.CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
Public Overridable Function CreateClient(Of TClient As ServiceClient(Of TClient)) (container As IAzureContextContainer, endpoint As String) As TClient

Type Parameters

TClient

Parameters

endpoint
String

Returns

TClient

Implements

Applies to

CreateClient<TClient>(IAzureContextContainer, IAzureSubscription, String)

public virtual TClient CreateClient<TClient> (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer profile, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription subscription, string endpoint) where TClient : Hyak.Common.ServiceClient<TClient>;
abstract member CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
override this.CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
Public Overridable Function CreateClient(Of TClient As ServiceClient(Of TClient)) (profile As IAzureContextContainer, subscription As IAzureSubscription, endpoint As String) As TClient

Type Parameters

TClient

Parameters

subscription
IAzureSubscription
endpoint
String

Returns

TClient

Implements

Applies to

CreateClient<TClient>(IAzureContextContainer, String)

public virtual TClient CreateClient<TClient> (Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer container, string endpoint) where TClient : Hyak.Common.ServiceClient<TClient>;
abstract member CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
override this.CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
Public Overridable Function CreateClient(Of TClient As ServiceClient(Of TClient)) (container As IAzureContextContainer, endpoint As String) As TClient

Type Parameters

TClient

Parameters

endpoint
String

Returns

TClient

Implements

Applies to

CreateClient<TClient>(IAzureContext, String)

public virtual TClient CreateClient<TClient> (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, string endpoint) where TClient : Hyak.Common.ServiceClient<TClient>;
abstract member CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
override this.CreateClient : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * string -> 'Client (requires 'Client :> Hyak.Common.ServiceClient<'Client>)
Public Overridable Function CreateClient(Of TClient As ServiceClient(Of TClient)) (context As IAzureContext, endpoint As String) As TClient

Type Parameters

TClient

Parameters

context
IAzureContext
endpoint
String

Returns

TClient

Implements

Applies to