Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .NET SDK to 10.0.100-alpha.1.24630.4 #59660

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove unused members
  • Loading branch information
MackinnonBuck committed Jan 3, 2025
commit f522417214a2c5bdbb50753a1a67da6754a2dfc1
3 changes: 0 additions & 3 deletions src/Components/Components/src/RouteView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ static RouteView()
}
}

[Inject]
private NavigationManager NavigationManager { get; set; }

/// <summary>
/// Gets or sets the route data. This determines the page that will be
/// displayed and the parameter values that will be supplied to the page.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ public static IDisposable EnableDataAnnotationsValidation(this EditContext editC

private static event Action? OnClearCache;

#pragma warning disable IDE0051 // Remove unused private members
private static void ClearCache(Type[]? _)
{
OnClearCache?.Invoke();
}
#pragma warning restore IDE0051 // Remove unused private members

private sealed class DataAnnotationsEventSubscriptions : IDisposable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,34 +77,4 @@ void IInternalAlgorithmConfiguration.Validate()
using var encryptor = factory.CreateAuthenticatedEncryptorInstance(secret, this);
encryptor.PerformSelfTest();
}

// Any changes to this method should also be be reflected
// in ManagedAuthenticatedEncryptorDescriptorDeserializer.FriendlyNameToType.
private static string TypeToFriendlyName(Type type)
{
if (type == typeof(Aes))
{
return nameof(Aes);
}
else if (type == typeof(HMACSHA1))
{
return nameof(HMACSHA1);
}
else if (type == typeof(HMACSHA256))
{
return nameof(HMACSHA256);
}
else if (type == typeof(HMACSHA384))
{
return nameof(HMACSHA384);
}
else if (type == typeof(HMACSHA512))
{
return nameof(HMACSHA512);
}
else
{
return type.AssemblyQualifiedName!;
}
}
}
26 changes: 12 additions & 14 deletions src/Http/Http.Abstractions/src/Routing/RouteValueDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ public RouteValueDictionary(RouteValueDictionary? dictionary)
_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
}
}
#endif

[MemberNotNull(nameof(_arrayStorage))]
private void Initialize(IEnumerable<KeyValuePair<string, string?>> stringValueEnumerable)
Expand All @@ -221,21 +220,9 @@ private void Initialize(IEnumerable<KeyValuePair<string, string?>> stringValueEn
}
}

[MemberNotNull(nameof(_arrayStorage))]
private void Initialize(IEnumerable<KeyValuePair<string, object?>> keyValueEnumerable)
{
_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();

foreach (var kvp in keyValueEnumerable)
{
Add(kvp.Key, kvp.Value);
}
}

[MemberNotNull(nameof(_arrayStorage))]
private void Initialize(RouteValueDictionary dictionary)
{
#if !COMPONENTS
if (dictionary._propertyStorage != null)
{
// PropertyStorage is immutable so we can just copy it.
Expand All @@ -244,7 +231,6 @@ private void Initialize(RouteValueDictionary dictionary)
_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
return;
}
#endif

var count = dictionary._count;
if (count > 0)
Expand All @@ -260,6 +246,18 @@ private void Initialize(RouteValueDictionary dictionary)
_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
}
}
#endif

[MemberNotNull(nameof(_arrayStorage))]
private void Initialize(IEnumerable<KeyValuePair<string, object?>> keyValueEnumerable)
{
_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();

foreach (var kvp in keyValueEnumerable)
{
Add(kvp.Key, kvp.Value);
}
}

/// <inheritdoc />
public object? this[string key]
Expand Down
3 changes: 3 additions & 0 deletions src/Http/startvscode.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@ECHO OFF

%~dp0..\..\startvscode.cmd %~dp0
5 changes: 5 additions & 0 deletions src/Http/startvscode.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
repo_root="$DIR/../.."
"$repo_root/startvscode.sh" $DIR
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure;

internal sealed class TransportManager
{
private readonly List<ActiveTransport> _transports = new List<ActiveTransport>();
private readonly List<ActiveTransport> _transports = [];

private readonly List<IConnectionListenerFactory> _transportFactories;
private readonly List<IMultiplexedConnectionListenerFactory> _multiplexedTransportFactories;
Expand All @@ -30,7 +30,6 @@ public TransportManager(
_serviceContext = serviceContext;
}

private ConnectionManager ConnectionManager => _serviceContext.ConnectionManager;
private KestrelTrace Trace => _serviceContext.Log;

public async Task<EndPoint> BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig? endpointConfig, CancellationToken cancellationToken)
Expand Down
3 changes: 3 additions & 0 deletions src/Servers/Kestrel/startvscode.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@ECHO OFF

%~dp0..\..\..\startvscode.cmd %~dp0
5 changes: 5 additions & 0 deletions src/Servers/Kestrel/startvscode.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
repo_root="$DIR/../../.."
"$repo_root/startvscode.sh" $DIR
Loading