diff --git a/src/Components/Blazor.sln b/src/Components/Blazor.sln index b739e47354..0b6d018107 100644 --- a/src/Components/Blazor.sln +++ b/src/Components/Blazor.sln @@ -39,12 +39,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DevServer", "DevServer", "{ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Components.WebAssembly.DevServer", "WebAssembly\DevServer\src\Microsoft.AspNetCore.Components.WebAssembly.DevServer.csproj", "{0ED336B7-6FAB-4872-8D75-1CDD5A5DDBB2}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Http", "Http", "{F4995C96-8D4E-4B26-8FB8-614B020156C2}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Blazor.HttpClient", "WebAssembly\Http\src\Microsoft.AspNetCore.Blazor.HttpClient.csproj", "{FAFE3FF2-D36D-47DA-833D-C382A902705E}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Blazor.HttpClient.Tests", "WebAssembly\Http\test\Microsoft.AspNetCore.Blazor.HttpClient.Tests.csproj", "{2C10DF3B-D138-414A-BB36-02E45A7B6025}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WebAssembly.JSInterop", "WebAssembly.JSInterop", "{37FA056D-A7B3-4F72-A8B9-8D3C175E831E}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.JSInterop.WebAssembly", "WebAssembly\JSInterop\src\Microsoft.JSInterop.WebAssembly.csproj", "{FBD7C733-200E-4BED-8B31-2610C2263F72}" @@ -255,30 +249,6 @@ Global {0ED336B7-6FAB-4872-8D75-1CDD5A5DDBB2}.Release|x64.Build.0 = Release|Any CPU {0ED336B7-6FAB-4872-8D75-1CDD5A5DDBB2}.Release|x86.ActiveCfg = Release|Any CPU {0ED336B7-6FAB-4872-8D75-1CDD5A5DDBB2}.Release|x86.Build.0 = Release|Any CPU - {FAFE3FF2-D36D-47DA-833D-C382A902705E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FAFE3FF2-D36D-47DA-833D-C382A902705E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FAFE3FF2-D36D-47DA-833D-C382A902705E}.Debug|x64.ActiveCfg = Debug|Any CPU - {FAFE3FF2-D36D-47DA-833D-C382A902705E}.Debug|x64.Build.0 = Debug|Any CPU - {FAFE3FF2-D36D-47DA-833D-C382A902705E}.Debug|x86.ActiveCfg = Debug|Any CPU - {FAFE3FF2-D36D-47DA-833D-C382A902705E}.Debug|x86.Build.0 = Debug|Any CPU - {FAFE3FF2-D36D-47DA-833D-C382A902705E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FAFE3FF2-D36D-47DA-833D-C382A902705E}.Release|Any CPU.Build.0 = Release|Any CPU - {FAFE3FF2-D36D-47DA-833D-C382A902705E}.Release|x64.ActiveCfg = Release|Any CPU - {FAFE3FF2-D36D-47DA-833D-C382A902705E}.Release|x64.Build.0 = Release|Any CPU - {FAFE3FF2-D36D-47DA-833D-C382A902705E}.Release|x86.ActiveCfg = Release|Any CPU - {FAFE3FF2-D36D-47DA-833D-C382A902705E}.Release|x86.Build.0 = Release|Any CPU - {2C10DF3B-D138-414A-BB36-02E45A7B6025}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2C10DF3B-D138-414A-BB36-02E45A7B6025}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2C10DF3B-D138-414A-BB36-02E45A7B6025}.Debug|x64.ActiveCfg = Debug|Any CPU - {2C10DF3B-D138-414A-BB36-02E45A7B6025}.Debug|x64.Build.0 = Debug|Any CPU - {2C10DF3B-D138-414A-BB36-02E45A7B6025}.Debug|x86.ActiveCfg = Debug|Any CPU - {2C10DF3B-D138-414A-BB36-02E45A7B6025}.Debug|x86.Build.0 = Debug|Any CPU - {2C10DF3B-D138-414A-BB36-02E45A7B6025}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2C10DF3B-D138-414A-BB36-02E45A7B6025}.Release|Any CPU.Build.0 = Release|Any CPU - {2C10DF3B-D138-414A-BB36-02E45A7B6025}.Release|x64.ActiveCfg = Release|Any CPU - {2C10DF3B-D138-414A-BB36-02E45A7B6025}.Release|x64.Build.0 = Release|Any CPU - {2C10DF3B-D138-414A-BB36-02E45A7B6025}.Release|x86.ActiveCfg = Release|Any CPU - {2C10DF3B-D138-414A-BB36-02E45A7B6025}.Release|x86.Build.0 = Release|Any CPU {FBD7C733-200E-4BED-8B31-2610C2263F72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FBD7C733-200E-4BED-8B31-2610C2263F72}.Debug|Any CPU.Build.0 = Debug|Any CPU {FBD7C733-200E-4BED-8B31-2610C2263F72}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -588,9 +558,6 @@ Global {9C41BA92-FBC8-4E11-9A71-0B07906A2D6C} = {B4ACD900-27B6-482B-B434-2C1E86E9D8BC} {A44FB7D1-78AB-41C4-B1C7-94399396EA6C} = {B29FB58D-FAE5-405E-9695-BCF93582BE9A} {0ED336B7-6FAB-4872-8D75-1CDD5A5DDBB2} = {A44FB7D1-78AB-41C4-B1C7-94399396EA6C} - {F4995C96-8D4E-4B26-8FB8-614B020156C2} = {B29FB58D-FAE5-405E-9695-BCF93582BE9A} - {FAFE3FF2-D36D-47DA-833D-C382A902705E} = {F4995C96-8D4E-4B26-8FB8-614B020156C2} - {2C10DF3B-D138-414A-BB36-02E45A7B6025} = {F4995C96-8D4E-4B26-8FB8-614B020156C2} {37FA056D-A7B3-4F72-A8B9-8D3C175E831E} = {B29FB58D-FAE5-405E-9695-BCF93582BE9A} {FBD7C733-200E-4BED-8B31-2610C2263F72} = {37FA056D-A7B3-4F72-A8B9-8D3C175E831E} {7920B09F-8016-49CF-A229-E72D0CECDD17} = {B29FB58D-FAE5-405E-9695-BCF93582BE9A} diff --git a/src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj b/src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj index a86767fdbf..d2d5b02b4f 100644 --- a/src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj +++ b/src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj @@ -8,6 +8,7 @@ true false 3.0 + true diff --git a/src/Components/WebAssembly/Authentication.Msal/src/MsalWebAssemblyServiceCollectionExtensions.cs b/src/Components/WebAssembly/Authentication.Msal/src/MsalWebAssemblyServiceCollectionExtensions.cs index 05e443bc98..7217c196c6 100644 --- a/src/Components/WebAssembly/Authentication.Msal/src/MsalWebAssemblyServiceCollectionExtensions.cs +++ b/src/Components/WebAssembly/Authentication.Msal/src/MsalWebAssemblyServiceCollectionExtensions.cs @@ -20,7 +20,7 @@ namespace Microsoft.Extensions.DependencyInjection /// Adds authentication using msal.js to Blazor applications. /// /// The . - /// The to configure the . + /// A callback to configure the . /// The . public static IServiceCollection AddMsalAuthentication(this IServiceCollection services, Action> configure) { @@ -32,7 +32,7 @@ namespace Microsoft.Extensions.DependencyInjection /// /// The type of the remote authentication state. /// The . - /// The to configure the . + /// A callback to configure the . /// The . public static IServiceCollection AddMsalAuthentication(this IServiceCollection services, Action> configure) where TRemoteAuthenticationState : RemoteAuthenticationState, new() @@ -45,8 +45,9 @@ namespace Microsoft.Extensions.DependencyInjection /// Adds authentication using msal.js to Blazor applications. /// /// The type of the remote authentication state. + /// The type of the . /// The . - /// The to configure the . + /// A callback to configure the . /// The . public static IServiceCollection AddMsalAuthentication(this IServiceCollection services, Action> configure) where TRemoteAuthenticationState : RemoteAuthenticationState, new() diff --git a/src/Components/WebAssembly/JSInterop/src/Microsoft.JSInterop.WebAssembly.csproj b/src/Components/WebAssembly/JSInterop/src/Microsoft.JSInterop.WebAssembly.csproj index e7083b3adf..5f291a8faf 100644 --- a/src/Components/WebAssembly/JSInterop/src/Microsoft.JSInterop.WebAssembly.csproj +++ b/src/Components/WebAssembly/JSInterop/src/Microsoft.JSInterop.WebAssembly.csproj @@ -8,6 +8,7 @@ true true false + true diff --git a/src/Components/WebAssembly/Server/src/ComponentsWebAssemblyApplicationBuilderExtensions.cs b/src/Components/WebAssembly/Server/src/ComponentsWebAssemblyApplicationBuilderExtensions.cs index cef223fd72..d4d2349f87 100644 --- a/src/Components/WebAssembly/Server/src/ComponentsWebAssemblyApplicationBuilderExtensions.cs +++ b/src/Components/WebAssembly/Server/src/ComponentsWebAssemblyApplicationBuilderExtensions.cs @@ -62,7 +62,6 @@ namespace Microsoft.AspNetCore.Builder /// Configures the application to serve Blazor WebAssembly framework files from the root path "/". /// /// The . - /// The that indicates the prefix for the Blazor WebAssembly application. /// The public static IApplicationBuilder UseBlazorFrameworkFiles(this IApplicationBuilder applicationBuilder) => UseBlazorFrameworkFiles(applicationBuilder, default); diff --git a/src/Components/WebAssembly/Server/src/Microsoft.AspNetCore.Components.WebAssembly.Server.csproj b/src/Components/WebAssembly/Server/src/Microsoft.AspNetCore.Components.WebAssembly.Server.csproj index bd773f5e1c..e98a799019 100644 --- a/src/Components/WebAssembly/Server/src/Microsoft.AspNetCore.Components.WebAssembly.Server.csproj +++ b/src/Components/WebAssembly/Server/src/Microsoft.AspNetCore.Components.WebAssembly.Server.csproj @@ -10,6 +10,7 @@ $(NoWarn);NU5100 + true diff --git a/src/Components/WebAssembly/Validation/src/ComparePropertyAttribute.cs b/src/Components/WebAssembly/Validation/src/ComparePropertyAttribute.cs index 3f74ce647f..98649a0fb7 100644 --- a/src/Components/WebAssembly/Validation/src/ComparePropertyAttribute.cs +++ b/src/Components/WebAssembly/Validation/src/ComparePropertyAttribute.cs @@ -10,7 +10,7 @@ namespace System.ComponentModel.DataAnnotations public sealed class ComparePropertyAttribute : CompareAttribute { /// - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// The property to compare with the current property. public ComparePropertyAttribute(string otherProperty) diff --git a/src/Components/WebAssembly/Validation/src/Microsoft.AspNetCore.Components.DataAnnotations.Validation.csproj b/src/Components/WebAssembly/Validation/src/Microsoft.AspNetCore.Components.DataAnnotations.Validation.csproj index 744b3c7121..9aa848d459 100644 --- a/src/Components/WebAssembly/Validation/src/Microsoft.AspNetCore.Components.DataAnnotations.Validation.csproj +++ b/src/Components/WebAssembly/Validation/src/Microsoft.AspNetCore.Components.DataAnnotations.Validation.csproj @@ -5,6 +5,7 @@ Provides experimental support for validation using DataAnnotations. true false + true diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj b/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj index 9740caaf01..d0be43efcd 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj @@ -8,6 +8,7 @@ true false 3.0 + true diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationContext.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationContext.cs index 0b2208c28f..f54a69c558 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationContext.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationContext.cs @@ -15,7 +15,7 @@ namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication public string Url { get; set; } /// - /// Gets or sets the instance for the current authentication operation. + /// Gets or sets the state instance for the current authentication operation. /// public TRemoteAuthenticationState State { get; set; } } diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationOptions.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationOptions.cs index 18d4b8fa10..7efb26f44c 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationOptions.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationOptions.cs @@ -4,13 +4,13 @@ namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { /// - /// Represents the options for the . + /// Options for remote authentication. /// /// The type of the underlying provider options. public class RemoteAuthenticationOptions where TRemoteAuthenticationProviderOptions : new() { /// - /// Gets or sets the . + /// Gets or sets the provider options. /// public TRemoteAuthenticationProviderOptions ProviderOptions { get; set; } = new TRemoteAuthenticationProviderOptions(); diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/RemoteAuthenticationService.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/RemoteAuthenticationService.cs index a4c97eaa3f..030160bfee 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/RemoteAuthenticationService.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/RemoteAuthenticationService.cs @@ -15,6 +15,7 @@ namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication /// The default implementation for that uses JS interop to authenticate the user. /// /// The state to preserve across authentication operations. + /// The type of the . /// The options to be passed down to the underlying JavaScript library handling the authentication operations. public class RemoteAuthenticationService : AuthenticationStateProvider, @@ -52,7 +53,7 @@ namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication protected RemoteAuthenticationOptions Options { get; } /// - /// Initializes a new instance of . + /// Initializes a new instance. /// /// The to use for performing JavaScript interop operations. /// The options to be passed down to the underlying JavaScript library handling the authentication operations. diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/SignOutSessionStateManager.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/SignOutSessionStateManager.cs index 769184da67..2867f2639e 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/SignOutSessionStateManager.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/SignOutSessionStateManager.cs @@ -37,7 +37,7 @@ namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication /// Validates the existence of some state previously setup by in session storage to allow /// logouts from within the page. /// - /// A that completes when the state has been validated and indicates the validity of the state. + /// A that completes when the state has been validated and indicates the validity of the state. public virtual async Task ValidateSignOutState() { var state = await GetSignOutState(); diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/UserFactory.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/UserFactory.cs index 7b46bfa5c2..1c7aa980fa 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/UserFactory.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/UserFactory.cs @@ -9,7 +9,7 @@ using Microsoft.AspNetCore.Components.WebAssembly.Authentication.Internal; namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { /// - /// Converts a into a . + /// Converts into a . /// /// The account type. public class UserFactory where TAccount : RemoteUserAccount @@ -27,7 +27,7 @@ namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication /// /// Converts the into the final . /// - /// The . + /// The account. /// The to configure the with. /// A that will contain the user when completed. public virtual ValueTask CreateUserAsync( diff --git a/src/Components/WebAssembly/WebAssembly/src/Hosting/IWebAssemblyHostEnvironment.cs b/src/Components/WebAssembly/WebAssembly/src/Hosting/IWebAssemblyHostEnvironment.cs index 31d41a688a..f9c0c3cb13 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Hosting/IWebAssemblyHostEnvironment.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Hosting/IWebAssemblyHostEnvironment.cs @@ -15,7 +15,7 @@ namespace Microsoft.AspNetCore.Components.WebAssembly.Hosting string Environment { get; } /// - /// Gets the base address for the application. This is typically derived from the "" value in the host page. + /// Gets the base address for the application. This is typically derived from the >base href< value in the host page. /// string BaseAddress { get; } } diff --git a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostEnvironmentExtensions.cs b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostEnvironmentExtensions.cs index 257a55ef87..2aaeb94a93 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostEnvironmentExtensions.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostEnvironmentExtensions.cs @@ -7,10 +7,10 @@ namespace Microsoft.AspNetCore.Components.WebAssembly.Hosting public static class WebAssemblyHostEnvironmentExtensions { /// - /// Checks if the current hosting environment name is . + /// Checks if the current hosting environment name is Development. /// /// An instance of . - /// True if the environment name is , otherwise false. + /// True if the environment name is Development, otherwise false. public static bool IsDevelopment(this IWebAssemblyHostEnvironment hostingEnvironment) { if (hostingEnvironment == null) @@ -22,10 +22,10 @@ namespace Microsoft.AspNetCore.Components.WebAssembly.Hosting } /// - /// Checks if the current hosting environment name is . + /// Checks if the current hosting environment name is Staging. /// /// An instance of . - /// True if the environment name is , otherwise false. + /// True if the environment name is Staging, otherwise false. public static bool IsStaging(this IWebAssemblyHostEnvironment hostingEnvironment) { if (hostingEnvironment == null) @@ -37,10 +37,10 @@ namespace Microsoft.AspNetCore.Components.WebAssembly.Hosting } /// - /// Checks if the current hosting environment name is . + /// Checks if the current hosting environment name is Production. /// /// An instance of . - /// True if the environment name is , otherwise false. + /// True if the environment name is Production, otherwise false. public static bool IsProduction(this IWebAssemblyHostEnvironment hostingEnvironment) { if (hostingEnvironment == null) diff --git a/src/Components/WebAssembly/WebAssembly/src/Microsoft.AspNetCore.Components.WebAssembly.csproj b/src/Components/WebAssembly/WebAssembly/src/Microsoft.AspNetCore.Components.WebAssembly.csproj index 8b6c508893..a3c963c436 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Microsoft.AspNetCore.Components.WebAssembly.csproj +++ b/src/Components/WebAssembly/WebAssembly/src/Microsoft.AspNetCore.Components.WebAssembly.csproj @@ -5,6 +5,7 @@ Build client-side single-page applications (SPAs) with Blazor running under WebAssembly. true $(NoWarn);BL0006 + true diff --git a/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyConsoleLoggerProvider.cs b/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyConsoleLoggerProvider.cs index c79b3f07b0..50a3c9ce7e 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyConsoleLoggerProvider.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyConsoleLoggerProvider.cs @@ -15,12 +15,10 @@ namespace Microsoft.AspNetCore.Components.WebAssembly.Services { private readonly ConcurrentDictionary> _loggers; private readonly IJSInProcessRuntime _jsRuntime; - private bool _disposed; /// /// Creates an instance of . /// - /// The options to create instances with. public WebAssemblyConsoleLoggerProvider(IJSInProcessRuntime jsRuntime) { _loggers = new ConcurrentDictionary>(); @@ -36,10 +34,6 @@ namespace Microsoft.AspNetCore.Components.WebAssembly.Services /// public void Dispose() { - if (!_disposed) - { - _disposed = true; - } } } }