コード例 #1
0
 /// <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;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 /// <summary>Initializes a new instance of <see cref="ServerCall"/>.</summary>
 internal ServerCall(string serverCallId, ServerCallsRestClient serverCallRestClient, ClientDiagnostics clientDiagnostics)
 {
     ServerCallId       = serverCallId;
     RestClient         = serverCallRestClient;
     _clientDiagnostics = clientDiagnostics;
 }