private SmsClient(SmsClientOptions options, ConnectionString connectionString)
     : this(
         clientDiagnostics : new ClientDiagnostics(options),
         pipeline : options.BuildHttpPipeline(connectionString),
         endpointUrl : connectionString.GetRequired("endpoint"))
 {
 }
 private SmsClient(Uri endpoint, SmsClientOptions options, AzureKeyCredential credential)
 {
     _clientDiagnostics = new ClientDiagnostics(options);
     RestClient         = new SmsRestClient(
         _clientDiagnostics,
         options.BuildHttpPipeline(credential),
         endpoint.AbsoluteUri);
 }
        private SmsClient(Uri endpoint, SmsClientOptions options, TokenCredential tokenCredential)
        {
            Argument.AssertNotNull(endpoint, nameof(endpoint));
            Argument.AssertNotNull(tokenCredential, nameof(tokenCredential));

            _clientDiagnostics = new ClientDiagnostics(options);
            RestClient         = new SmsRestClient(
                _clientDiagnostics,
                options.BuildHttpPipeline(tokenCredential),
                endpoint.AbsoluteUri);
        }
 private SmsClient(string endpoint, AzureKeyCredential keyCredential, SmsClientOptions options)
     : this(endpoint, options.BuildHttpPipeline(keyCredential), options)
 {
 }
 private SmsClient(string endpoint, TokenCredential tokenCredential, SmsClientOptions options)
     : this(endpoint, options.BuildHttpPipeline(tokenCredential), options)
 {
 }
 private SmsClient(ConnectionString connectionString, SmsClientOptions options)
     : this(connectionString.GetRequired("endpoint"), options.BuildHttpPipeline(connectionString), options)
 {
 }