diff --git a/sdk/communication/Azure.Communication.CallingServer/api/Azure.Communication.CallingServer.netstandard2.0.cs b/sdk/communication/Azure.Communication.CallingServer/api/Azure.Communication.CallingServer.netstandard2.0.cs index 4db37ccf78c0..bf90d51f1122 100644 --- a/sdk/communication/Azure.Communication.CallingServer/api/Azure.Communication.CallingServer.netstandard2.0.cs +++ b/sdk/communication/Azure.Communication.CallingServer/api/Azure.Communication.CallingServer.netstandard2.0.cs @@ -64,7 +64,8 @@ public partial class CallingServerClient protected CallingServerClient() { } public CallingServerClient(string connectionString) { } public CallingServerClient(string connectionString, Azure.Communication.CallingServer.CallingServerClientOptions options) { } - public CallingServerClient(System.Uri endpoint, Azure.Core.TokenCredential tokenCredential, Azure.Communication.CallingServer.CallingServerClientOptions options = null) { } + public CallingServerClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } + public CallingServerClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Communication.CallingServer.CallingServerClientOptions options) { } public virtual Azure.Response CreateCallConnection(Azure.Communication.CommunicationIdentifier source, System.Collections.Generic.IEnumerable targets, Azure.Communication.CallingServer.CreateCallOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CreateCallConnectionAsync(Azure.Communication.CommunicationIdentifier source, System.Collections.Generic.IEnumerable targets, Azure.Communication.CallingServer.CreateCallOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DownloadStreaming(System.Uri sourceEndpoint, Azure.HttpRange range = default(Azure.HttpRange), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/CallingServerClient.cs b/sdk/communication/Azure.Communication.CallingServer/src/CallingServerClient.cs index 1604f5851eaa..5fac0dcf8232 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/CallingServerClient.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/CallingServerClient.cs @@ -46,15 +46,24 @@ public CallingServerClient(string connectionString, CallingServerClientOptions o /// Initializes a new instance of . /// The URI of the Azure Communication Services resource. - /// The TokenCredential used to authenticate requests, such as DefaultAzureCredential. - /// Client option exposing , , , etc. - public CallingServerClient(Uri endpoint, TokenCredential tokenCredential, CallingServerClientOptions options = default) + /// The TokenCredential used to authenticate requests, such as DefaultAzureCredential. + public CallingServerClient(Uri endpoint, TokenCredential credential) : this( Argument.CheckNotNull(endpoint, nameof(endpoint)).AbsoluteUri, - Argument.CheckNotNull(tokenCredential, nameof(tokenCredential)), - options ?? new CallingServerClientOptions()) + Argument.CheckNotNull(credential, nameof(credential)), + new CallingServerClientOptions()) { } + /// Initializes a new instance of . + /// The URI of the Azure Communication Services resource. + /// The TokenCredential used to authenticate requests, such as DefaultAzureCredential. + /// Client option exposing , , , etc. + public CallingServerClient(Uri endpoint, TokenCredential credential, CallingServerClientOptions options) + : this( + Argument.CheckNotNull(endpoint, nameof(endpoint)).AbsoluteUri, + Argument.CheckNotNull(credential, nameof(credential)), + Argument.CheckNotNull(options, nameof(options))) + { } #endregion #region private constructors