43 references to ContentRangeHeaderValue
Microsoft.AspNetCore.Http.Results (1)
src\Shared\ResultsHelpers\FileResultHelper.cs (1)
323httpResponseHeaders.ContentRange = new ContentRangeHeaderValue(
Microsoft.AspNetCore.Http.Results.Tests (10)
src\Shared\ResultsTests\FileContentResultTestBase.cs (2)
85var contentRange = new ContentRangeHeaderValue(start.Value, end.Value, byteArray.Length); 124var contentRange = new ContentRangeHeaderValue(0, 4, byteArray.Length);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (2)
59var contentRange = new ContentRangeHeaderValue(start.Value, end.Value, byteArray.Length); 102var contentRange = new ContentRangeHeaderValue(0, 4, byteArray.Length);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (3)
54var contentRange = new ContentRangeHeaderValue(startResult.Value, endResult.Value, 34); 87var contentRange = new ContentRangeHeaderValue(0, 3, 34); 314var contentRange = new ContentRangeHeaderValue(start.Value, end.Value, 34);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (3)
66var contentRange = new ContentRangeHeaderValue(startResult.Value, endResult.Value, 33); 105var contentRange = new ContentRangeHeaderValue(0, 3, 33); 349var contentRange = new ContentRangeHeaderValue(start.Value, end.Value, 33);
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\ResultsHelpers\FileResultHelper.cs (1)
323httpResponseHeaders.ContentRange = new ContentRangeHeaderValue(
Microsoft.AspNetCore.Mvc.Core.Test (10)
src\Shared\ResultsTests\FileContentResultTestBase.cs (2)
85var contentRange = new ContentRangeHeaderValue(start.Value, end.Value, byteArray.Length); 124var contentRange = new ContentRangeHeaderValue(0, 4, byteArray.Length);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (2)
59var contentRange = new ContentRangeHeaderValue(start.Value, end.Value, byteArray.Length); 102var contentRange = new ContentRangeHeaderValue(0, 4, byteArray.Length);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (3)
54var contentRange = new ContentRangeHeaderValue(startResult.Value, endResult.Value, 34); 87var contentRange = new ContentRangeHeaderValue(0, 3, 34); 314var contentRange = new ContentRangeHeaderValue(start.Value, end.Value, 34);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (3)
66var contentRange = new ContentRangeHeaderValue(startResult.Value, endResult.Value, 33); 105var contentRange = new ContentRangeHeaderValue(0, 3, 33); 349var contentRange = new ContentRangeHeaderValue(start.Value, end.Value, 33);
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
249return new ContentRangeHeaderValue(start, end, _length);
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
404return new ContentRangeHeaderValue(start, end, _length);
Microsoft.Net.Http.Headers.Tests (19)
ContentRangeHeaderValueTest.cs (19)
51Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(-1, 1, 2)); 52Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(0, -1, 2)); 53Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(0, 1, -1)); 54Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(2, 1, 3)); 55Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(1, 2, 1)); 56Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(1, 2, 2)); 62var range = new ContentRangeHeaderValue(0, 1, 2); 89var range = new ContentRangeHeaderValue(1, 2, 3); 103var range1 = new ContentRangeHeaderValue(1, 2, 5); 106var range4 = new ContentRangeHeaderValue(1, 2, 5); 108var range5 = new ContentRangeHeaderValue(1, 2, 5); 121var range1 = new ContentRangeHeaderValue(1, 2, 5); 124var range4 = new ContentRangeHeaderValue(1, 2, 5); 126var range5 = new ContentRangeHeaderValue(1, 2, 5); 128var range6 = new ContentRangeHeaderValue(1, 3, 5); 129var range7 = new ContentRangeHeaderValue(2, 2, 5); 130var range8 = new ContentRangeHeaderValue(1, 2, 6); 147CheckValidParse(" bytes 1-2/3 ", new ContentRangeHeaderValue(1, 2, 3)); 178CheckValidTryParse(" bytes 1-2/3 ", new ContentRangeHeaderValue(1, 2, 3));