21 references to TryParseNonNegativeInt64
Microsoft.AspNetCore.Http (1)
HeaderDictionary.cs (1)
127HeaderUtilities.TryParseNonNegativeInt64(new StringSegment(rawValue[0]).Trim(), out value))
Microsoft.AspNetCore.Http.Extensions (1)
HeaderDictionaryTypeExtensions.cs (1)
151private static long? ParseCacheInt64(string value) => HeaderUtilities.TryParseNonNegativeInt64(value, out var result) ? result : null;
Microsoft.AspNetCore.Owin (1)
DictionaryStringValuesWrapper.cs (1)
57HeaderUtilities.TryParseNonNegativeInt64(new StringSegment(rawValue[0]).Trim(), out value))
Microsoft.AspNetCore.Server.HttpSys (2)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
132HeaderUtilities.TryParseNonNegativeInt64(new StringSegment(rawValue[0]).Trim(), out value))
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
188HeaderUtilities.TryParseNonNegativeInt64(new StringSegment(rawValue[0]).Trim(), out value))
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
132HeaderUtilities.TryParseNonNegativeInt64(new StringSegment(rawValue[0]).Trim(), out value))
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
188HeaderUtilities.TryParseNonNegativeInt64(new StringSegment(rawValue[0]).Trim(), out value))
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\HttpRequestHeaders.cs (1)
85if (!HeaderUtilities.TryParseNonNegativeInt64(value, out var parsed))
Internal\Http\HttpResponseHeaders.cs (1)
104if (!HeaderUtilities.TryParseNonNegativeInt64(value, out var parsed))
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
132HeaderUtilities.TryParseNonNegativeInt64(new StringSegment(rawValue[0]).Trim(), out value))
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
188HeaderUtilities.TryParseNonNegativeInt64(new StringSegment(rawValue[0]).Trim(), out value))
Microsoft.Net.Http.Headers (8)
ContentDispositionHeaderValue.cs (1)
162if (HeaderUtilities.TryParseNonNegativeInt64(sizeString, out var value))
ContentRangeHeaderValue.cs (3)
394if ((fromLength > 0) && !HeaderUtilities.TryParseNonNegativeInt64(input.Subsegment(fromStartIndex, fromLength), out from)) 400if ((toLength > 0) && !HeaderUtilities.TryParseNonNegativeInt64(input.Subsegment(toStartIndex, toLength), out to)) 412if ((lengthLength > 0) && !HeaderUtilities.TryParseNonNegativeInt64(input.Subsegment(lengthStartIndex, lengthLength),
HeaderUtilities.cs (1)
346if (TryParseNonNegativeInt64(new StringSegment(headerValue, startIndex, HttpRuleParser.GetNumberLength(headerValue, startIndex, false)), out result))
RangeItemHeaderValue.cs (2)
216if ((fromLength > 0) && !HeaderUtilities.TryParseNonNegativeInt64(input.Subsegment(fromStartIndex, fromLength), out from)) 223if ((toLength > 0) && !HeaderUtilities.TryParseNonNegativeInt64(input.Subsegment(toStartIndex, toLength), out to))
SetCookieHeaderValue.cs (1)
579if (!HeaderUtilities.TryParseNonNegativeInt64(numberString, out maxAge))
Microsoft.Net.Http.Headers.Tests (2)
HeaderUtilitiesTest.cs (2)
186Assert.False(HeaderUtilities.TryParseNonNegativeInt64(valueString, out value)); 196Assert.True(HeaderUtilities.TryParseNonNegativeInt64(valueString, out value));