public PlatformClient(PlatformClientOptions options, HttpMessageHandler httpClientHandler, params DelegatingHandler[] handlers)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }
            if (httpClientHandler == null)
            {
                throw new ArgumentNullException(nameof(httpClientHandler));
            }

            _httpClient = CreateClient(httpClientHandler, handlers);
            if (options.Timeout.HasValue)
            {
                _httpClient.Timeout = options.Timeout.Value;
            }
        }
 public static IPlatformClient Create(PlatformClientOptions options, HttpMessageHandler handler = null, params DelegatingHandler[] handlers)
 {
     return(new PlatformClient(options, handler, handlers));
 }