Example #1
0
 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));
 }
Example #2
0
 public HttpRestrictionSource(HttpClient client, HostPort host)
     : this(client, host, new JsonResponseSerializer())
 {
 }