private ServiceClient(ServiceOption option, IFfmpeg ffmpeg, HttpMessageHandler httpMessageHandler) { _option = option; _ffmpeg = ffmpeg; _httpClient = new HttpClient(httpMessageHandler); _httpClient.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36"); }
public ServiceClient(ServiceOption option, IFfmpeg ffmpeg) : this(option, ffmpeg, new HttpClientHandler { UseCookies = true }) { }