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