public HttpRestrictionSource(HttpClient client, HostPort host, IResponseDeserializer deserializer) { this.client = client ?? throw new ArgumentNullException(nameof(client)); this.host = host; this.deserializer = deserializer ?? throw new ArgumentNullException(nameof(deserializer)); }
public HttpRestrictionSource(HttpClient client, HostPort host) : this(client, host, new JsonResponseSerializer()) { }