23 references to FormatNonNegativeInt64
Microsoft.AspNetCore.Http (1)
HeaderDictionary.cs (1)
139this[HeaderNames.ContentLength] = HeaderUtilities.FormatNonNegativeInt64(value.GetValueOrDefault());
Microsoft.AspNetCore.Owin (1)
DictionaryStringValuesWrapper.cs (1)
68Inner[HeaderNames.ContentLength] = (StringValues)HeaderUtilities.FormatNonNegativeInt64(value.GetValueOrDefault());
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
181response.Headers.Age = HeaderUtilities.FormatNonNegativeInt64(context.CachedEntryAge.Value.Ticks / TimeSpan.TicksPerSecond);
Microsoft.AspNetCore.Server.HttpSys (2)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
152_contentLengthText = HeaderUtilities.FormatNonNegativeInt64(value.Value);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
207_contentLengthText = HeaderUtilities.FormatNonNegativeInt64(value.Value);
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
152_contentLengthText = HeaderUtilities.FormatNonNegativeInt64(value.Value);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
207_contentLengthText = HeaderUtilities.FormatNonNegativeInt64(value.Value);
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Internal\Http\HttpHeaders.Generated.cs (11)
586return new StringValues(HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value)); 3335value = HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value); 3354value = HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value); 7469array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value)); 8649_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_collection._contentLength.GetValueOrDefault())); 8803return new StringValues(HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value)); 11386value = HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value); 11396value = HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value); 14796array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value)); 15482_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_collection._contentLength.GetValueOrDefault())); 17564array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
HttpHeadersTests.cs (1)
268Assert.Equal(HeaderUtilities.FormatNonNegativeInt64(long.MaxValue), value[0]);
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
152_contentLengthText = HeaderUtilities.FormatNonNegativeInt64(value.Value);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
207_contentLengthText = HeaderUtilities.FormatNonNegativeInt64(value.Value);
Microsoft.Net.Http.Headers.Tests (2)
HeaderUtilitiesTest.cs (2)
106Assert.Equal(value.ToString(CultureInfo.InvariantCulture), HeaderUtilities.FormatNonNegativeInt64(value)); 115Assert.Throws<ArgumentOutOfRangeException>(() => HeaderUtilities.FormatNonNegativeInt64(value));