Skip to content

Commit 15fa3ad

Browse files
Update SDK to 7.0.100-preview.2.22078.1 (#39895)
* Update SDK to 7.0.100-preview.2.22078.1 * Fix formatting issues * Update HubEndpointRouteBuilderExtensions.cs Co-authored-by: Pranav K <[email protected]>
1 parent 2802fa8 commit 15fa3ad

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
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": "7.0.100-alpha.1.22071.3"
3+
"version": "7.0.100-preview.2.22078.1"
44
},
55
"tools": {
6-
"dotnet": "7.0.100-alpha.1.22071.3",
6+
"dotnet": "7.0.100-preview.2.22078.1",
77
"runtimes": {
88
"dotnet": [
99
"2.1.30",

src/Http/Routing/src/RouteOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private static IDictionary<string, Type> GetDefaultConstraintMap()
128128
/// </summary>
129129
/// <typeparam name="T">The parameter policy type.</typeparam>
130130
/// <param name="token">The route token used to apply the parameter policy.</param>
131-
public void SetParameterPolicy<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]T>(string token) where T : IParameterPolicy
131+
public void SetParameterPolicy<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T>(string token) where T : IParameterPolicy
132132
{
133133
ConstraintMap[token] = typeof(T);
134134
}
@@ -149,7 +149,7 @@ public void SetParameterPolicy(string token, [DynamicallyAccessedMembers(Dynamic
149149
ConstraintMap[token] = type;
150150
}
151151

152-
private static void AddConstraint<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]TConstraint>(Dictionary<string, Type> constraintMap, string text) where TConstraint : IRouteConstraint
152+
private static void AddConstraint<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TConstraint>(Dictionary<string, Type> constraintMap, string text) where TConstraint : IRouteConstraint
153153
{
154154
constraintMap[text] = typeof(TConstraint);
155155
}

src/Mvc/Mvc.ApiExplorer/test/EndpointMetadataApiDescriptionProviderTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ public void AddsDisplayNameFromRouteEndpoint()
476476
[Fact]
477477
public void AddsMetadataFromRouteEndpoint()
478478
{
479-
var apiDescription = GetApiDescription([ApiExplorerSettings(IgnoreApi = true)]() => { });
479+
var apiDescription = GetApiDescription([ApiExplorerSettings(IgnoreApi = true)] () => { });
480480

481481
Assert.NotEmpty(apiDescription.ActionDescriptor.EndpointMetadata);
482482

@@ -763,7 +763,7 @@ public void FavorsProducesMetadataOverAttribute()
763763
{
764764
// Arrange
765765
var builder = CreateBuilder();
766-
builder.MapGet("/api/todos", [ProducesResponseType(typeof(List<string>), StatusCodes.Status200OK)]() => "")
766+
builder.MapGet("/api/todos", [ProducesResponseType(typeof(List<string>), StatusCodes.Status200OK)] () => "")
767767
.Produces<InferredJsonClass>(StatusCodes.Status200OK);
768768
var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>());
769769

src/Security/Authentication/Core/src/AuthenticationBuilder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public AuthenticationBuilder(IServiceCollection services)
2525
/// </summary>
2626
public virtual IServiceCollection Services { get; }
2727

28-
private AuthenticationBuilder AddSchemeHelper<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions)
28+
private AuthenticationBuilder AddSchemeHelper<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions)
2929
where TOptions : AuthenticationSchemeOptions, new()
3030
where THandler : class, IAuthenticationHandler
3131
{
@@ -59,7 +59,7 @@ public AuthenticationBuilder(IServiceCollection services)
5959
/// <param name="displayName">The display name of this scheme.</param>
6060
/// <param name="configureOptions">Used to configure the scheme options.</param>
6161
/// <returns>The builder.</returns>
62-
public virtual AuthenticationBuilder AddScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions)
62+
public virtual AuthenticationBuilder AddScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions)
6363
where TOptions : AuthenticationSchemeOptions, new()
6464
where THandler : AuthenticationHandler<TOptions>
6565
=> AddSchemeHelper<TOptions, THandler>(authenticationScheme, displayName, configureOptions);
@@ -72,7 +72,7 @@ public AuthenticationBuilder(IServiceCollection services)
7272
/// <param name="authenticationScheme">The name of this scheme.</param>
7373
/// <param name="configureOptions">Used to configure the scheme options.</param>
7474
/// <returns>The builder.</returns>
75-
public virtual AuthenticationBuilder AddScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]THandler>(string authenticationScheme, Action<TOptions>? configureOptions)
75+
public virtual AuthenticationBuilder AddScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, Action<TOptions>? configureOptions)
7676
where TOptions : AuthenticationSchemeOptions, new()
7777
where THandler : AuthenticationHandler<TOptions>
7878
=> AddScheme<TOptions, THandler>(authenticationScheme, displayName: null, configureOptions: configureOptions);
@@ -87,7 +87,7 @@ public AuthenticationBuilder(IServiceCollection services)
8787
/// <param name="displayName">The display name of this scheme.</param>
8888
/// <param name="configureOptions">Used to configure the scheme options.</param>
8989
/// <returns>The builder.</returns>
90-
public virtual AuthenticationBuilder AddRemoteScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions)
90+
public virtual AuthenticationBuilder AddRemoteScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions)
9191
where TOptions : RemoteAuthenticationOptions, new()
9292
where THandler : RemoteAuthenticationHandler<TOptions>
9393
{

src/Security/Authentication/OAuth/src/OAuthExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static AuthenticationBuilder AddOAuth(this AuthenticationBuilder builder,
4242
/// <param name="authenticationScheme">The authentication scheme.</param>
4343
/// <param name="configureOptions">A delegate to configure the handler specific options.</param>
4444
/// <returns>A reference to <paramref name="builder"/> after the operation has completed.</returns>
45-
public static AuthenticationBuilder AddOAuth<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]THandler>(this AuthenticationBuilder builder, string authenticationScheme, Action<TOptions> configureOptions)
45+
public static AuthenticationBuilder AddOAuth<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(this AuthenticationBuilder builder, string authenticationScheme, Action<TOptions> configureOptions)
4646
where TOptions : OAuthOptions, new()
4747
where THandler : OAuthHandler<TOptions>
4848
=> builder.AddOAuth<TOptions, THandler>(authenticationScheme, OAuthDefaults.DisplayName, configureOptions);
@@ -55,7 +55,7 @@ public static AuthenticationBuilder AddOAuth(this AuthenticationBuilder builder,
5555
/// <param name="displayName">A display name for the authentication handler.</param>
5656
/// <param name="configureOptions">A delegate to configure the handler specific options.</param>
5757
/// <returns>A reference to <paramref name="builder"/> after the operation has completed.</returns>
58-
public static AuthenticationBuilder AddOAuth<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]THandler>(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<TOptions> configureOptions)
58+
public static AuthenticationBuilder AddOAuth<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<TOptions> configureOptions)
5959
where TOptions : OAuthOptions, new()
6060
where THandler : OAuthHandler<TOptions>
6161
{

src/SignalR/server/Core/src/HubOptionsExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static void AddFilter(this HubOptions options, IHubFilter hubFilter)
3434
/// </summary>
3535
/// <typeparam name="TFilter">The <see cref="IHubFilter"/> type that will be added to the options.</typeparam>
3636
/// <param name="options">The options to add a filter to.</param>
37-
public static void AddFilter<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]TFilter>(this HubOptions options) where TFilter : IHubFilter
37+
public static void AddFilter<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TFilter>(this HubOptions options) where TFilter : IHubFilter
3838
{
3939
_ = options ?? throw new ArgumentNullException(nameof(options));
4040

src/SignalR/server/Core/src/SignalRConnectionBuilderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static class SignalRConnectionBuilderExtensions
2020
/// <typeparam name="THub">The <see cref="Hub"/> type to host on the connection.</typeparam>
2121
/// <param name="connectionBuilder">The connection to configure.</param>
2222
/// <returns>The same instance of the <see cref="IConnectionBuilder"/> for chaining.</returns>
23-
public static IConnectionBuilder UseHub<[DynamicallyAccessedMembers(HubAccessibility)]THub>(this IConnectionBuilder connectionBuilder) where THub : Hub
23+
public static IConnectionBuilder UseHub<[DynamicallyAccessedMembers(HubAccessibility)] THub>(this IConnectionBuilder connectionBuilder) where THub : Hub
2424
{
2525
var marker = connectionBuilder.ApplicationServices.GetService(typeof(SignalRCoreMarkerService));
2626
if (marker == null)

src/SignalR/server/SignalR/src/HubEndpointRouteBuilderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static class HubEndpointRouteBuilderExtensions
2323
/// <param name="endpoints">The <see cref="IEndpointRouteBuilder"/> to add the route to.</param>
2424
/// <param name="pattern">The route pattern.</param>
2525
/// <returns>An <see cref="HubEndpointConventionBuilder"/> for endpoints associated with the connections.</returns>
26-
public static HubEndpointConventionBuilder MapHub<[DynamicallyAccessedMembers(HubAccessibility)]THub>(this IEndpointRouteBuilder endpoints, string pattern) where THub : Hub
26+
public static HubEndpointConventionBuilder MapHub<[DynamicallyAccessedMembers(HubAccessibility)] THub>(this IEndpointRouteBuilder endpoints, string pattern) where THub : Hub
2727
{
2828
return endpoints.MapHub<THub>(pattern, configureOptions: null);
2929
}
@@ -36,7 +36,7 @@ public static class HubEndpointRouteBuilderExtensions
3636
/// <param name="pattern">The route pattern.</param>
3737
/// <param name="configureOptions">A callback to configure dispatcher options.</param>
3838
/// <returns>An <see cref="HubEndpointConventionBuilder"/> for endpoints associated with the connections.</returns>
39-
public static HubEndpointConventionBuilder MapHub<[DynamicallyAccessedMembers(HubAccessibility)]THub>(this IEndpointRouteBuilder endpoints, string pattern, Action<HttpConnectionDispatcherOptions>? configureOptions) where THub : Hub
39+
public static HubEndpointConventionBuilder MapHub<[DynamicallyAccessedMembers(HubAccessibility)] THub>(this IEndpointRouteBuilder endpoints, string pattern, Action<HttpConnectionDispatcherOptions>? configureOptions) where THub : Hub
4040
{
4141
var marker = endpoints.ServiceProvider.GetService<SignalRMarkerService>();
4242

0 commit comments

Comments
 (0)