private CommunicationIdentityClient(Uri endpoint, CommunicationIdentityClientOptions options, TokenCredential tokenCredential) { _clientDiagnostics = new ClientDiagnostics(options); RestClient = new CommunicationIdentityRestClient( _clientDiagnostics, options.BuildHttpPipeline(tokenCredential), endpoint.AbsoluteUri); }
private CommunicationIdentityClient(CommunicationIdentityClientOptions options, ConnectionString connectionString) { _clientDiagnostics = new ClientDiagnostics(options); RestClient = new CommunicationIdentityRestClient( _clientDiagnostics, options.BuildHttpPipeline(connectionString), connectionString.GetRequired("endpoint")); }
/// <summary>Initializes a new instance of <see cref="CommunicationIdentityClient"/> for mocking.</summary> protected CommunicationIdentityClient() { _clientDiagnostics = null !; RestClient = null !; }