/// <summary> /// Initializes a new instance of the <see cref="HttpClientBase"/> class. /// </summary> protected HttpClientBase( IHttpBodySerializer serializer, string token, string serviceUrl) { this.serializer = serializer; this.client = new HttpClient(); this.AppToken = token; this.BaseUri = new Uri(serviceUrl); this.client.DefaultRequestHeaders.Accept.Add( new MediaTypeWithQualityHeaderValue("application/x-protobuf")); this.virgilInfo = VirgilStatInfo(); }
/// <summary> /// Initializes a new instance of the <see cref="PheHttpClient"/> class. /// </summary> public PheHttpClient(IHttpBodySerializer serializer, string token, string serviceUrl) : base(serializer, token, serviceUrl) { }
/// <summary> /// Initializes a new instance of the <see cref="HttpClientBase"/> class. /// </summary> protected HttpClientBase(IHttpBodySerializer serializer) { this.serializer = serializer; this.client = new HttpClient(); }
/// <summary> /// Initializes a new instance of the <see cref="PheClient"/> class. /// </summary> public PheClient(IHttpBodySerializer serializer) : base(serializer) { }