Skip to content

Commit 4fdc35d

Browse files
authored
Merge pull request #26559 from dotnet-maestro-bot/merge/release/5.0-to-master
[automated] Merge branch 'release/5.0' => 'master'
2 parents 6ec61eb + 2030c5c commit 4fdc35d

File tree

115 files changed

+1087
-117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+1087
-117
lines changed

src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<NoPackageAnalysis>true</NoPackageAnalysis>
77
<GenerateDocumentationFile>false</GenerateDocumentationFile>
88
<Description>Roslyn analyzers for ASP.NET Core Components.</Description>
9+
<NoWarn>$(NoWarn.Replace('1591', ''))</NoWarn>
910
</PropertyGroup>
1011

1112
<ItemGroup>

src/Components/Authorization/src/AuthorizeRouteView.cs

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ private static readonly RenderFragment _defaultAuthorizingContent
3030
private readonly RenderFragment<AuthenticationState> _renderNotAuthorizedDelegate;
3131
private readonly RenderFragment _renderAuthorizingDelegate;
3232

33+
/// <summary>
34+
/// Initialize a new instance of a <see cref="AuthorizeRouteView"/>.
35+
/// </summary>
3336
public AuthorizeRouteView()
3437
{
3538
// Cache the rendering delegates so that we only construct new closure instances

src/Components/Authorization/src/Microsoft.AspNetCore.Components.Authorization.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<IsAspNetCoreApp>true</IsAspNetCoreApp>
66
<Description>Authentication and authorization support for Blazor applications.</Description>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
8+
<NoWarn>$(NoWarn.Replace('1591', ''))</NoWarn>
89
</PropertyGroup>
910

1011
<ItemGroup>

src/Components/Components/src/Microsoft.AspNetCore.Components.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
<IsAspNetCoreApp>true</IsAspNetCoreApp>
88
<Nullable>enable</Nullable>
9+
<NoWarn>$(NoWarn.Replace('1591', ''))</NoWarn>
910
</PropertyGroup>
1011

1112
<ItemGroup>

src/Components/Components/src/RouteView.cs

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ public class RouteView : IComponent
3535
[Parameter]
3636
public Type DefaultLayout { get; set; }
3737

38+
/// <summary>
39+
/// Initializes a new instance of <see cref="RouteView"/>.
40+
/// </summary>
3841
public RouteView()
3942
{
4043
// Cache the delegate instances

src/Components/Components/src/Routing/NavigationContext.cs

+6
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@ internal NavigationContext(string path, CancellationToken cancellationToken)
1717
CancellationToken = cancellationToken;
1818
}
1919

20+
/// <summary>
21+
/// The target path for the navigation.
22+
/// </summary>
2023
public string Path { get; }
2124

25+
/// <summary>
26+
/// The <see cref="CancellationToken"/> to use to cancel navigation.
27+
/// </summary>
2228
public CancellationToken CancellationToken { get; }
2329
}
2430
}

src/Components/Forms/src/Microsoft.AspNetCore.Components.Forms.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<Description>Forms and validation support for Blazor applications.</Description>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
<Nullable>enable</Nullable>
9+
<NoWarn>$(NoWarn.Replace('1591', ''))</NoWarn>
910
</PropertyGroup>
1011

1112
<ItemGroup>

src/Components/Server/src/Microsoft.AspNetCore.Components.Server.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
9-
<NoWarn>CS0436;$(NoWarn)</NoWarn>
9+
<NoWarn>CS0436;$(NoWarn.Replace('1591', ''))</NoWarn>
1010
<DefineConstants>$(DefineConstants);ENABLE_UNSAFE_MSGPACK;SPAN_BUILTIN;MESSAGEPACK_INTERNAL;COMPONENTS_SERVER</DefineConstants>
1111
<IsPackable>false</IsPackable>
1212
<EmbeddedFilesManifestFileName>Microsoft.Extensions.FileProviders.Embedded.Manifest.xml</EmbeddedFilesManifestFileName>

src/Components/Web/src/ElementReferenceExtensions.cs

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace Microsoft.AspNetCore.Components
99
{
10+
/// <summary>
11+
/// Static class that adds extension methods to <see cref="ElementReference"/>.
12+
/// </summary>
1013
public static class ElementReferenceExtensions
1114
{
1215
/// <summary>

src/Components/Web/src/Forms/InputBase.cs

+1
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ private bool ConvertToDictionary(IReadOnlyDictionary<string, object>? source, ou
287287
return newDictionaryCreated;
288288
}
289289

290+
/// <inheritdoc/>
290291
protected virtual void Dispose(bool disposing)
291292
{
292293
}

src/Components/Web/src/Forms/InputFile.cs

+3
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ public class InputFile : ComponentBase, IInputFileJsCallbacks, IDisposable
4141
[Parameter(CaptureUnmatchedValues = true)]
4242
public IDictionary<string, object>? AdditionalAttributes { get; set; }
4343

44+
/// <inheritdoc/>
4445
protected override void OnInitialized()
4546
{
4647
_jsUnmarshalledRuntime = JSRuntime as IJSUnmarshalledRuntime;
4748
}
4849

50+
/// <inheritdoc/>
4951
protected override async Task OnAfterRenderAsync(bool firstRender)
5052
{
5153
if (firstRender)
@@ -55,6 +57,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
5557
}
5658
}
5759

60+
/// <inheritdoc/>
5861
protected override void BuildRenderTree(RenderTreeBuilder builder)
5962
{
6063
builder.OpenElement(0, "input");

src/Components/Web/src/Forms/ValidationMessage.cs

+4
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ protected override void BuildRenderTree(RenderTreeBuilder builder)
8080
}
8181
}
8282

83+
/// <summary>
84+
/// Called to dispose this instance.
85+
/// </summary>
86+
/// <param name="disposing"><see langword="true"/> if called within <see cref="IDisposable.Dispose"/>.</param>
8387
protected virtual void Dispose(bool disposing)
8488
{
8589
}

src/Components/Web/src/Forms/ValidationSummary.cs

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ protected override void BuildRenderTree(RenderTreeBuilder builder)
9292
}
9393
}
9494

95+
/// <inheritdoc/>
9596
protected virtual void Dispose(bool disposing)
9697
{
9798
}

src/Components/Web/src/Microsoft.AspNetCore.Components.Web.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
<RootNamespace>Microsoft.AspNetCore.Components</RootNamespace>
99
<Nullable>enable</Nullable>
10+
<NoWarn>$(NoWarn.Replace('1591', ''))</NoWarn>
1011
</PropertyGroup>
1112

1213
<ItemGroup>

src/Components/Web/src/Routing/NavLink.cs

+1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ private bool EqualsHrefExactlyOrIfTrailingSlashAdded(string currentUriAbsolute)
157157
return false;
158158
}
159159

160+
/// <inheritdoc/>
160161
protected override void BuildRenderTree(RenderTreeBuilder builder)
161162
{
162163
builder.OpenElement(0, "a");

src/Components/Web/src/WebElementReferenceContext.cs

+7
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@
66

77
namespace Microsoft.AspNetCore.Components
88
{
9+
/// <summary>
10+
/// A <see cref="ElementReferenceContext"/> for a web element.
11+
/// </summary>
912
public class WebElementReferenceContext : ElementReferenceContext
1013
{
1114
internal IJSRuntime JSRuntime { get; }
1215

16+
/// <summary>
17+
/// Initialize a new instance of <see cref="WebElementReferenceContext"/>.
18+
/// </summary>
19+
/// <param name="jsRuntime">The <see cref="IJSRuntime"/>.</param>
1320
public WebElementReferenceContext(IJSRuntime jsRuntime)
1421
{
1522
JSRuntime = jsRuntime ?? throw new ArgumentNullException(nameof(jsRuntime));

src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
77
<Description>Authenticate your Blazor webassembly applications with Azure Active Directory and Azure Active Directory B2C</Description>
88
<GenerateDocumentationFile>true</GenerateDocumentationFile>
9+
<NoWarn>$(NoWarn.Replace('1591', ''))</NoWarn>
910
</PropertyGroup>
1011

1112
<ItemGroup>

src/Components/WebAssembly/DevServer/src/Microsoft.AspNetCore.Components.WebAssembly.DevServer.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<StartupObject>Microsoft.AspNetCore.Components.WebAssembly.DevServer.Program</StartupObject>
1010
<Description>Development server for use when building Blazor applications.</Description>
1111
<GenerateDocumentationFile>true</GenerateDocumentationFile>
12+
<NoWarn>$(NoWarn.Replace('1591', ''))</NoWarn>
1213
<!-- Set this to false because assemblies should not reference this assembly directly, (except for tests, of course). -->
1314
<IsProjectReferenceProvider>false</IsProjectReferenceProvider>
1415

src/Components/WebAssembly/JSInterop/src/Microsoft.JSInterop.WebAssembly.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<PackageTags>wasm;javascript;interop</PackageTags>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
<IsShippingPackage>true</IsShippingPackage>
9+
<NoWarn>$(NoWarn.Replace('1591', ''))</NoWarn>
910
</PropertyGroup>
1011

1112
<ItemGroup>

src/Components/WebAssembly/JSInterop/src/WebAssemblyJSRuntime.cs

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ protected override void BeginInvokeJS(long asyncHandle, string identifier, strin
4848
InternalCalls.InvokeJS<object, object, object, string>(out _, ref callInfo, null, null, null);
4949
}
5050

51+
/// <inheritdoc />
5152
protected override void EndInvokeDotNet(DotNetInvocationInfo callInfo, in DotNetInvocationResult dispatchResult)
5253
{
5354
// For failures, the common case is to call EndInvokeDotNet with the Exception object.

src/Components/WebAssembly/Sdk/src/Microsoft.NET.Sdk.BlazorWebAssembly.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<Description>MSBuild support for building Blazor WebAssembly apps.</Description>
44
<TargetFrameworks>$(DefaultNetCoreTargetFramework);net46</TargetFrameworks>
@@ -9,7 +9,7 @@
99
<SdkOutputPath>$(ArtifactsBinDir)Microsoft.NET.Sdk.BlazorWebAssembly\$(Configuration)\sdk-output\</SdkOutputPath>
1010

1111
<!-- Allow assemblies outside of lib in the package -->
12-
<NoWarn>$(NoWarn);NU5100</NoWarn>
12+
<NoWarn>$(NoWarn.Replace('1591', ''));NU5100</NoWarn>
1313
<!-- Need to build this project in source build -->
1414
<ExcludeFromSourceBuild>false</ExcludeFromSourceBuild>
1515

src/Components/WebAssembly/Server/src/Microsoft.AspNetCore.Components.WebAssembly.Server.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<IsShippingPackage>true</IsShippingPackage>
77

88
<!-- We're deliberately bundling assemblies as content files. Suppress the warning. -->
9-
<NoWarn>$(NoWarn);NU5100</NoWarn>
9+
<NoWarn>$(NoWarn.Replace('1591', ''));NU5100</NoWarn>
1010
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1111
</PropertyGroup>
1212

src/Components/WebAssembly/Server/src/TargetPickerUi.cs

+13
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
namespace Microsoft.AspNetCore.Components.WebAssembly.Server
1717
{
18+
/// <summary>
19+
/// Class for the target picker ui.
20+
/// </summary>
1821
public class TargetPickerUi
1922
{
2023
private static readonly JsonSerializerOptions JsonOptions = new JsonSerializerOptions
@@ -27,12 +30,22 @@ public class TargetPickerUi
2730
private string _browserHost;
2831
private string _debugProxyUrl;
2932

33+
/// <summary>
34+
/// Initialize a new instance of <see cref="TargetPickerUi"/>.
35+
/// </summary>
36+
/// <param name="debugProxyUrl">The debug proxy url.</param>
37+
/// <param name="devToolsHost">The dev tools host.</param>
3038
public TargetPickerUi(string debugProxyUrl, string devToolsHost)
3139
{
3240
_debugProxyUrl = debugProxyUrl;
3341
_browserHost = devToolsHost;
3442
}
3543

44+
/// <summary>
45+
/// Display the ui.
46+
/// </summary>
47+
/// <param name="context">The <see cref="HttpContext"/>.</param>
48+
/// <returns>The <see cref="Task"/>.</returns>
3649
public async Task Display(HttpContext context)
3750
{
3851
context.Response.ContentType = "text/html";

src/Components/WebAssembly/WebAssembly.Authentication/src/IRemoteAuthenticationBuilder.cs

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ public interface IRemoteAuthenticationBuilder<TRemoteAuthenticationState, TAccou
1414
where TRemoteAuthenticationState : RemoteAuthenticationState
1515
where TAccount : RemoteUserAccount
1616
{
17+
/// <summary>
18+
/// The <see cref="IServiceCollection"/>.
19+
/// </summary>
1720
IServiceCollection Services { get; }
1821
}
1922
}

src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<Description>Build client-side authentication for single-page applications (SPAs).</Description>
88
<IsShippingPackage>true</IsShippingPackage>
99
<GenerateDocumentationFile>true</GenerateDocumentationFile>
10+
<NoWarn>$(NoWarn.Replace('1591', ''))</NoWarn>
1011
</PropertyGroup>
1112

1213
<ItemGroup>

src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccountClaimsPrincipalFactory.cs

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ public class AccountClaimsPrincipalFactory<TAccount> where TAccount : RemoteUser
1717
private readonly IAccessTokenProviderAccessor _accessor;
1818

1919
#pragma warning disable PUB0001 // Pubternal type in public API
20+
/// <summary>
21+
/// Initialize a new instance of <see cref="AccountClaimsPrincipalFactory{TAccount}"/>.
22+
/// </summary>
23+
/// <param name="accessor"></param>
2024
public AccountClaimsPrincipalFactory(IAccessTokenProviderAccessor accessor) => _accessor = accessor;
2125

2226
/// <summary>

src/Components/WebAssembly/WebAssembly.Authentication/src/Services/ExpiredTokenException.cs

+9
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ public class AccessTokenNotAvailableException : Exception
1717
private readonly NavigationManager _navigation;
1818
private readonly AccessTokenResult _tokenResult;
1919

20+
/// <summary>
21+
/// Initialize a new instance of <see cref="AccessTokenNotAvailableException"/>.
22+
/// </summary>
23+
/// <param name="navigation">The <see cref="NavigationManager"/>.</param>
24+
/// <param name="tokenResult">The <see cref="AccessTokenResult"/>.</param>
25+
/// <param name="scopes">The scopes.</param>
2026
public AccessTokenNotAvailableException(
2127
NavigationManager navigation,
2228
AccessTokenResult tokenResult,
@@ -28,6 +34,9 @@ public AccessTokenNotAvailableException(
2834
_navigation = navigation;
2935
}
3036

37+
/// <summary>
38+
/// Navigates to <see cref="AccessTokenResult.RedirectUrl"/> to allow refreshing the access token.
39+
/// </summary>
3140
public void Redirect() => _navigation.NavigateTo(_tokenResult.RedirectUrl);
3241
}
3342
}

src/Components/WebAssembly/WebAssembly.Authentication/src/Services/SignOutSessionStateManager.cs

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ public class SignOutSessionStateManager
1919
PropertyNameCaseInsensitive = true,
2020
};
2121

22+
/// <summary>
23+
/// Initialize a new instance of <see cref="SignOutSessionStateManager"/>.
24+
/// </summary>
25+
/// <param name="jsRuntime">The <see cref="IJSRuntime"/>.</param>
2226
public SignOutSessionStateManager(IJSRuntime jsRuntime) => _jsRuntime = jsRuntime;
2327

2428
/// <summary>

src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostEnvironmentExtensions.cs

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace Microsoft.AspNetCore.Components.WebAssembly.Hosting
66
{
7+
/// <summary>
8+
/// Static class that adds extension methods to <see cref="IWebAssemblyHostEnvironment"/>.
9+
/// </summary>
710
public static class WebAssemblyHostEnvironmentExtensions
811
{
912
/// <summary>

src/Components/WebAssembly/WebAssembly/src/Microsoft.AspNetCore.Components.WebAssembly.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
55
<Description>Build client-side single-page applications (SPAs) with Blazor running under WebAssembly.</Description>
66
<IsShippingPackage>true</IsShippingPackage>
7-
<NoWarn>$(NoWarn);BL0006</NoWarn>
7+
<NoWarn>$(NoWarn.Replace('1591', ''));BL0006</NoWarn>
88
<GenerateDocumentationFile>true</GenerateDocumentationFile>
99
</PropertyGroup>
1010

src/Components/WebAssembly/WebAssembly/src/Services/LazyAssemblyLoader.cs

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public sealed class LazyAssemblyLoader
2828
private readonly IJSRuntime _jsRuntime;
2929
private readonly HashSet<string> _loadedAssemblyCache;
3030

31+
/// <summary>
32+
/// Initializes a new instance of <see cref="LazyAssemblyLoader"/>.
33+
/// </summary>
34+
/// <param name="jsRuntime">The <see cref="IJSRuntime"/>.</param>
3135
public LazyAssemblyLoader(IJSRuntime jsRuntime)
3236
{
3337
_jsRuntime = jsRuntime;

src/Middleware/Diagnostics.Abstractions/src/DiagnosticMessage.cs

+10
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ namespace Microsoft.AspNetCore.Diagnostics
88
/// </summary>
99
public class DiagnosticMessage
1010
{
11+
/// <summary>
12+
/// Initializes a new instance of <see cref="DiagnosticMessage"/>.
13+
/// </summary>
14+
/// <param name="message">The error message.</param>
15+
/// <param name="formattedMessage">The formatted error message.</param>
16+
/// <param name="filePath">The path of the file that produced the message.</param>
17+
/// <param name="startLine">The one-based line index for the start of the compilation error.</param>
18+
/// <param name="startColumn">The zero-based column index for the start of the compilation error.</param>
19+
/// <param name="endLine">The one-based line index for the end of the compilation error.</param>
20+
/// <param name="endColumn">The zero-based column index for the end of the compilation error.</param>
1121
public DiagnosticMessage(
1222
string? message,
1323
string? formattedMessage,

src/Middleware/Diagnostics.Abstractions/src/IExceptionHandlerFeature.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@
55

66
namespace Microsoft.AspNetCore.Diagnostics
77
{
8+
/// <summary>
9+
/// Represents a feature containing the error of the original request to be examined by an exception handler.
10+
/// </summary>
811
public interface IExceptionHandlerFeature
912
{
13+
/// <summary>
14+
/// The error encountered during the original request
15+
/// </summary>
1016
Exception Error { get; }
1117
}
12-
}
18+
}

0 commit comments

Comments
 (0)