Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacalvar <jacalvar@microsoft.com>2022-07-07 21:58:18 +0300
committerjacalvar <jacalvar@microsoft.com>2022-07-07 21:58:18 +0300
commit2b651801cf4b13abefa94f8aa63e90cc37a7c566 (patch)
tree79c577f812c6b095e7ee7b7293f99928c548a3da
parent6c24a1aafa2f8b5dca0d1f6133a861438acc68b6 (diff)
-rw-r--r--src/Components/Components/src/PublicAPI.Unshipped.txt1
-rw-r--r--src/Components/Components/src/Routing/LocationChangedEventArgs.cs4
-rw-r--r--src/Components/WebAssembly/WebAssembly/src/Infrastructure/JSInteropMethods.cs5
3 files changed, 4 insertions, 6 deletions
diff --git a/src/Components/Components/src/PublicAPI.Unshipped.txt b/src/Components/Components/src/PublicAPI.Unshipped.txt
index bff994adad..1007b29acd 100644
--- a/src/Components/Components/src/PublicAPI.Unshipped.txt
+++ b/src/Components/Components/src/PublicAPI.Unshipped.txt
@@ -7,7 +7,6 @@ Microsoft.AspNetCore.Components.NavigationOptions.State.init -> void
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent(int sequence, Microsoft.AspNetCore.Components.MarkupString? markupContent) -> void
Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs.LocationChangedEventArgs(string! location, string? state, bool isNavigationIntercepted) -> void
Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs.State.get -> string?
-Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs.State.set -> void
static Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback<T>(object! receiver, Microsoft.AspNetCore.Components.EventCallback<T> callback, T value) -> Microsoft.AspNetCore.Components.EventCallback<T>
static Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(System.Action! callback) -> System.Threading.Tasks.Task!
static Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(System.Func<System.Threading.Tasks.Task!>! callback) -> System.Threading.Tasks.Task!
diff --git a/src/Components/Components/src/Routing/LocationChangedEventArgs.cs b/src/Components/Components/src/Routing/LocationChangedEventArgs.cs
index e1a9a30a9b..fc600fc12c 100644
--- a/src/Components/Components/src/Routing/LocationChangedEventArgs.cs
+++ b/src/Components/Components/src/Routing/LocationChangedEventArgs.cs
@@ -42,7 +42,7 @@ public class LocationChangedEventArgs : EventArgs
public bool IsNavigationIntercepted { get; }
/// <summary>
- /// Gets or sets the state associated with the current history entry.
+ /// Gets the state associated with the current history entry.
/// </summary>
- public string? State { get; set; }
+ public string? State { get; }
}
diff --git a/src/Components/WebAssembly/WebAssembly/src/Infrastructure/JSInteropMethods.cs b/src/Components/WebAssembly/WebAssembly/src/Infrastructure/JSInteropMethods.cs
index 5a5697b77e..ef352db431 100644
--- a/src/Components/WebAssembly/WebAssembly/src/Infrastructure/JSInteropMethods.cs
+++ b/src/Components/WebAssembly/WebAssembly/src/Infrastructure/JSInteropMethods.cs
@@ -17,10 +17,9 @@ public static class JSInteropMethods
/// <summary>
/// For framework use only.
/// </summary>
+ [Obsolete("This API is for framework use only and is no longer used in the current version")]
public static void NotifyLocationChanged(string uri, bool isInterceptedLink)
- {
- WebAssemblyNavigationManager.Instance.SetLocation(uri, null, isInterceptedLink);
- }
+ => WebAssemblyNavigationManager.Instance.SetLocation(uri, null, isInterceptedLink);
/// <summary>
/// For framework use only.