Condividi tramite


EmailClientBuilderExtensions.AddEmailClient Method

Definition

Overloads

AddEmailClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Registers a EmailClient instance with the provided configuration

AddEmailClient<TBuilder>(TBuilder, String)

Registers a EmailClient instance with the provided connectionString

AddEmailClient<TBuilder>(TBuilder, Uri)

Registers a EmailClient instance with the provided serviceUri

AddEmailClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)

Registers a EmailClient instance with the provided serviceUri and azureKeyCredential

AddEmailClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Source:
EmailClientBuilderExtensions.cs
Source:
EmailClientBuilderExtensions.cs

Registers a EmailClient instance with the provided configuration

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Communication.Email.EmailClient,Azure.Communication.Email.EmailClientOptions> AddEmailClient<TBuilder,TConfiguration> (this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<TConfiguration>;
static member AddEmailClient : 'Builder * 'Configuration -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Communication.Email.EmailClient, Azure.Communication.Email.EmailClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<'Configuration>)
<Extension()>
Public Function AddEmailClient(Of TBuilder As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration), TConfiguration As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration)) (builder As TBuilder, configuration As TConfiguration) As IAzureClientBuilder(Of EmailClient, EmailClientOptions)

Type Parameters

TBuilder
TConfiguration

Parameters

builder
TBuilder
configuration
TConfiguration

Returns

Applies to

AddEmailClient<TBuilder>(TBuilder, String)

Source:
EmailClientBuilderExtensions.cs
Source:
EmailClientBuilderExtensions.cs

Registers a EmailClient instance with the provided connectionString

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Communication.Email.EmailClient,Azure.Communication.Email.EmailClientOptions> AddEmailClient<TBuilder> (this TBuilder builder, string connectionString) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddEmailClient : 'Builder * string -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Communication.Email.EmailClient, Azure.Communication.Email.EmailClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddEmailClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, connectionString As String) As IAzureClientBuilder(Of EmailClient, EmailClientOptions)

Type Parameters

TBuilder

Parameters

builder
TBuilder
connectionString
String

Returns

Applies to

AddEmailClient<TBuilder>(TBuilder, Uri)

Source:
EmailClientBuilderExtensions.cs
Source:
EmailClientBuilderExtensions.cs

Registers a EmailClient instance with the provided serviceUri

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Communication.Email.EmailClient,Azure.Communication.Email.EmailClientOptions> AddEmailClient<TBuilder> (this TBuilder builder, Uri serviceUri) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential;
static member AddEmailClient : 'Builder * Uri -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Communication.Email.EmailClient, Azure.Communication.Email.EmailClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential)
<Extension()>
Public Function AddEmailClient(Of TBuilder As IAzureClientFactoryBuilderWithCredential) (builder As TBuilder, serviceUri As Uri) As IAzureClientBuilder(Of EmailClient, EmailClientOptions)

Type Parameters

TBuilder

Parameters

builder
TBuilder
serviceUri
Uri

Returns

Applies to

AddEmailClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)

Source:
EmailClientBuilderExtensions.cs
Source:
EmailClientBuilderExtensions.cs

Registers a EmailClient instance with the provided serviceUri and azureKeyCredential

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Communication.Email.EmailClient,Azure.Communication.Email.EmailClientOptions> AddEmailClient<TBuilder> (this TBuilder builder, Uri serviceUri, Azure.AzureKeyCredential azureKeyCredential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddEmailClient : 'Builder * Uri * Azure.AzureKeyCredential -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Communication.Email.EmailClient, Azure.Communication.Email.EmailClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddEmailClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, serviceUri As Uri, azureKeyCredential As AzureKeyCredential) As IAzureClientBuilder(Of EmailClient, EmailClientOptions)

Type Parameters

TBuilder

Parameters

builder
TBuilder
serviceUri
Uri
azureKeyCredential
AzureKeyCredential

Returns

Applies to