public EmailClient(Uri endpoint, TokenCredential tokenCredential, EmailClientOptions options = default) : this( Argument.CheckNotNull(endpoint, nameof(endpoint)).AbsoluteUri, Argument.CheckNotNull(tokenCredential, nameof(tokenCredential)), options ?? new EmailClientOptions()) { }
private EmailClient(string endpoint, TokenCredential tokenCredential, EmailClientOptions options) : this(endpoint, options.BuildHttpPipeline(tokenCredential), options) { }
private EmailClient(string endpoint, AzureKeyCredential keyCredential, EmailClientOptions options) : this(endpoint, options.BuildHttpPipeline(keyCredential), options) { }
private EmailClient(string endpoint, HttpPipeline httpPipeline, EmailClientOptions options) { _clientDiagnostics = new ClientDiagnostics(options); RestClient = new EmailRestClient(_clientDiagnostics, httpPipeline, endpoint, options.ApiVersion); }
private EmailClient(ConnectionString connectionString, EmailClientOptions options) : this(connectionString.GetRequired("endpoint"), options.BuildHttpPipeline(connectionString), options) { }
public EmailClient(string connectionString, EmailClientOptions options) : this( ConnectionString.Parse(Argument.CheckNotNullOrEmpty(connectionString, nameof(connectionString))), options ?? new EmailClientOptions()) { }