/// <summary>Initializes a new instance of <see cref="CallingServerClient"/> for mocking.</summary> protected CallingServerClient() { _pipeline = null; _resourceEndpoint = null; _clientDiagnostics = null; _contentDownloader = new(this); CallConnectionRestClient = null; ServerCallRestClient = null; }
private CallingServerClient(string endpoint, HttpPipeline httpPipeline, CallingServerClientOptions options) { _pipeline = httpPipeline; _resourceEndpoint = endpoint; _clientDiagnostics = new ClientDiagnostics(options); _contentDownloader = new(this); CallConnectionRestClient = new CallConnectionsRestClient(_clientDiagnostics, httpPipeline, endpoint, options.ApiVersion); ServerCallRestClient = new ServerCallsRestClient(_clientDiagnostics, httpPipeline, endpoint, options.ApiVersion); }
/// <summary>Initializes a new instance of <see cref="ServerCall"/>.</summary> internal ServerCall(string serverCallId, ServerCallsRestClient serverCallRestClient, ClientDiagnostics clientDiagnostics) { ServerCallId = serverCallId; RestClient = serverCallRestClient; _clientDiagnostics = clientDiagnostics; }