ServiceCredentialsExtensions.UseAzureCredentials 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.
Overloads
UseAzureCredentials(ServiceHostBase) |
Configures the service host to use Azure credentials. |
UseAzureCredentials<TService>(IServiceBuilder) |
Configures the service type |
UseAzureCredentials<TService>(IServiceBuilder, Action<AzureServiceCredentials>) |
Configures the service type |
UseAzureCredentials(ServiceHostBase)
Configures the service host to use Azure credentials.
public static Microsoft.CoreWCF.Azure.AzureServiceCredentials UseAzureCredentials (this CoreWCF.ServiceHostBase serviceHostBase);
static member UseAzureCredentials : CoreWCF.ServiceHostBase -> Microsoft.CoreWCF.Azure.AzureServiceCredentials
<Extension()>
Public Function UseAzureCredentials (serviceHostBase As ServiceHostBase) As AzureServiceCredentials
Parameters
- serviceHostBase
- CoreWCF.ServiceHostBase
The service host.
Returns
The Azure service credentials.
Applies to
UseAzureCredentials<TService>(IServiceBuilder)
Configures the service type TService
to use Azure credentials.
public static Microsoft.CoreWCF.Azure.AzureServiceCredentials UseAzureCredentials<TService> (this CoreWCF.Configuration.IServiceBuilder serviceBuilder) where TService : class;
static member UseAzureCredentials : CoreWCF.Configuration.IServiceBuilder -> Microsoft.CoreWCF.Azure.AzureServiceCredentials (requires 'Service : null)
<Extension()>
Public Function UseAzureCredentials(Of TService As Class) (serviceBuilder As IServiceBuilder) As AzureServiceCredentials
Type Parameters
- TService
The type of the service.
Parameters
- serviceBuilder
- CoreWCF.Configuration.IServiceBuilder
The service builder.
Returns
The Azure service credentials.
Applies to
UseAzureCredentials<TService>(IServiceBuilder, Action<AzureServiceCredentials>)
Configures the service type TService
to use Azure credentials and executes a configuration delegate to modify those credentials.
public static void UseAzureCredentials<TService> (this CoreWCF.Configuration.IServiceBuilder serviceBuilder, Action<Microsoft.CoreWCF.Azure.AzureServiceCredentials> configure) where TService : class;
static member UseAzureCredentials : CoreWCF.Configuration.IServiceBuilder * Action<Microsoft.CoreWCF.Azure.AzureServiceCredentials> -> unit (requires 'Service : null)
<Extension()>
Public Sub UseAzureCredentials(Of TService As Class) (serviceBuilder As IServiceBuilder, configure As Action(Of AzureServiceCredentials))
Type Parameters
- TService
The type of the service.
Parameters
- serviceBuilder
- CoreWCF.Configuration.IServiceBuilder
The service builder.
- configure
- Action<AzureServiceCredentials>
An action to configure the Azure service credentials.
Applies to
Azure SDK for .NET