<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.24" />

Microsoft.Rest.ServiceClient<T>

public abstract class ServiceClient<T> : IDisposable where T : ServiceClient<T>
protected HttpMessageHandler FirstMessageHandler { get; protected set; }

public HttpClient HttpClient { get; protected set; }

protected HttpClientHandler HttpClientHandler { get; protected set; }

protected ServiceClient()

protected ServiceClient(HttpClient httpClient, bool disposeHttpClient = true)

protected ServiceClient(DelegatingHandler[] handlers)

protected ServiceClient(HttpClientHandler rootHandler, DelegatingHandler[] handlers)

protected virtual DelegatingHandler CreateHttpHandlerPipeline(HttpClientHandler httpClientHandler, DelegatingHandler[] handlers)

public void Dispose()

protected virtual void Dispose(bool disposing)

protected void InitializeHttpClient(HttpClientHandler httpClientHandler, DelegatingHandler[] handlers)

protected void InitializeHttpClient(HttpClient httpClient, HttpClientHandler httpClientHandler, DelegatingHandler[] handlers)

public virtual void SetRetryPolicy(RetryPolicy retryPolicy)

public bool SetUserAgent(string productName)

public bool SetUserAgent(string productName, string version)