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;
 }
Exemple #2
0
 public HttpException(HttpDataSource dataSource)
 {
     DataSource = dataSource;
 }
Exemple #3
0
 public HttpException(HttpStateCode code, HttpDataSource dataSource)
 {
     StateCode  = code;
     DataSource = dataSource;
 }