Skip to content

Commit e8a7ee5

Browse files
Update .NET SDK to 9.0.100-preview.3.24161.2 (#54483)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: James Newton-King <james@newtonking.com>
1 parent 1ee58ec commit e8a7ee5

File tree

8 files changed

+15
-22
lines changed

8 files changed

+15
-22
lines changed

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"sdk": {
3-
"version": "9.0.100-preview.2.24112.1"
3+
"version": "9.0.100-preview.3.24161.2"
44
},
55
"tools": {
6-
"dotnet": "9.0.100-preview.2.24112.1",
6+
"dotnet": "9.0.100-preview.3.24161.2",
77
"runtimes": {
88
"dotnet/x86": [
99
"$(MicrosoftNETCoreBrowserDebugHostTransportVersion)"

src/Http/Routing/src/Matching/HostMatcherPolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public Task ApplyAsync(HttpContext httpContext, CandidateSet candidates)
102102
host = host.Slice(0, pivot);
103103
}
104104

105-
if (host == null || MemoryExtensions.Equals(host, WildcardHost, StringComparison.OrdinalIgnoreCase))
105+
if (host.Length == 0 || MemoryExtensions.Equals(host, WildcardHost, StringComparison.OrdinalIgnoreCase))
106106
{
107107
// Can match any host
108108
}

src/Http/WebUtilities/src/HttpRequestStreamReader.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,6 @@ public override int Read(char[] buffer, int index, int count)
167167
/// <inheritdoc />
168168
public override int Read(Span<char> buffer)
169169
{
170-
if (buffer == null)
171-
{
172-
throw new ArgumentNullException(nameof(buffer));
173-
}
174-
175170
ThrowIfDisposed();
176171

177172
var count = buffer.Length;

src/Middleware/OutputCaching/src/OutputCacheEntryFormatter.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ private enum SerializationRevision
4040
public static async ValueTask StoreAsync(string key, OutputCacheEntry value, HashSet<string>? tags, TimeSpan duration, IOutputCacheStore store, ILogger logger, CancellationToken cancellationToken)
4141
{
4242
ArgumentNullException.ThrowIfNull(value);
43-
ArgumentNullException.ThrowIfNull(value.Body);
44-
ArgumentNullException.ThrowIfNull(value.Headers);
4543

4644
var buffer = new RecyclableArrayBufferWriter<byte>();
4745
Serialize(buffer, value);

src/Mvc/Mvc.Core/src/Builder/ControllerActionEndpointConventionBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void Add(Action<EndpointBuilder> convention)
4242
/// <inheritdoc />
4343
public void Finally(Action<EndpointBuilder> finalConvention)
4444
{
45-
ArgumentNullException.ThrowIfNull(nameof(finalConvention));
45+
ArgumentNullException.ThrowIfNull(finalConvention);
4646

4747
lock (_lock)
4848
{

src/Mvc/Mvc.Core/src/Routing/ActionEndpointFactory.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ public void AddEndpoints(
4747
bool createInertEndpoints,
4848
RoutePattern? groupPrefix = null)
4949
{
50-
ArgumentNullException.ThrowIfNull(nameof(endpoints));
51-
ArgumentNullException.ThrowIfNull(nameof(routeNames));
52-
ArgumentNullException.ThrowIfNull(nameof(action));
53-
ArgumentNullException.ThrowIfNull(nameof(routes));
54-
ArgumentNullException.ThrowIfNull(nameof(conventions));
55-
ArgumentNullException.ThrowIfNull(nameof(groupConventions));
56-
ArgumentNullException.ThrowIfNull(nameof(finallyConventions));
57-
ArgumentNullException.ThrowIfNull(nameof(groupFinallyConventions));
50+
ArgumentNullException.ThrowIfNull(endpoints);
51+
ArgumentNullException.ThrowIfNull(routeNames);
52+
ArgumentNullException.ThrowIfNull(action);
53+
ArgumentNullException.ThrowIfNull(routes);
54+
ArgumentNullException.ThrowIfNull(conventions);
55+
ArgumentNullException.ThrowIfNull(groupConventions);
56+
ArgumentNullException.ThrowIfNull(finallyConventions);
57+
ArgumentNullException.ThrowIfNull(groupFinallyConventions);
5858

5959
if (createInertEndpoints)
6060
{

src/Mvc/Mvc.RazorPages/src/Builder/PageActionEndpointConventionBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void Add(Action<EndpointBuilder> convention)
4242
/// <inheritdoc/>
4343
public void Finally(Action<EndpointBuilder> finalConvention)
4444
{
45-
ArgumentNullException.ThrowIfNull(nameof(finalConvention));
45+
ArgumentNullException.ThrowIfNull(finalConvention);
4646

4747
lock (_lock)
4848
{

src/Servers/HttpSys/src/RequestProcessing/Response.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ private unsafe void SerializeHeaders(ref UnmanagedBufferAllocator allocator, boo
528528
if (!HttpApiTypes.KnownResponseHeaders.TryGetValue(headerName, out lookup) ||
529529
(isOpaqueUpgrade && lookup == (int)HTTP_HEADER_ID.HttpHeaderConnection))
530530
{
531-
if (unknownHeaders == null)
531+
if (unknownHeaders.Length == 0)
532532
{
533533
var unknownAlloc = allocator.AllocAsPointer<HTTP_UNKNOWN_HEADER>(numUnknownHeaders);
534534
unknownHeaders = new Span<HTTP_UNKNOWN_HEADER>(unknownAlloc, numUnknownHeaders);
@@ -559,7 +559,7 @@ private unsafe void SerializeHeaders(ref UnmanagedBufferAllocator allocator, boo
559559
}
560560
else
561561
{
562-
if (knownHeaderInfo == null)
562+
if (knownHeaderInfo.Length == 0)
563563
{
564564
var responseAlloc = allocator.AllocAsPointer<HTTP_RESPONSE_INFO>(numKnownMultiHeaders);
565565
knownHeaderInfo = new Span<HTTP_RESPONSE_INFO>(responseAlloc, numKnownMultiHeaders);

0 commit comments

Comments
 (0)