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