public HttpPartialSource(HttpDataSource dataSource, long start, long?count) { if (start < 0) { throw new ArgumentOutOfRangeException(nameof(start)); } if (count != null && count < 0) { throw new ArgumentOutOfRangeException(nameof(count)); } BaseSource = dataSource ?? throw new ArgumentNullException(nameof(dataSource)); Start = start; Count = count; }
public HttpException(HttpDataSource dataSource) { DataSource = dataSource; }
public HttpException(HttpStateCode code, HttpDataSource dataSource) { StateCode = code; DataSource = dataSource; }