File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
src/JSInterop/Microsoft.JSInterop Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ public static partial class Json
5252 }
5353 public static partial class JSRuntime
5454 {
55- public static Microsoft . JSInterop . IJSRuntime Current { get { throw null ; } }
5655 public static void SetCurrentJSRuntime ( Microsoft . JSInterop . IJSRuntime instance ) { }
5756 }
5857 public abstract partial class JSRuntimeBase : Microsoft . JSInterop . IJSRuntime
Original file line number Diff line number Diff line change @@ -11,13 +11,9 @@ namespace Microsoft.JSInterop
1111 /// </summary>
1212 public static class JSRuntime
1313 {
14- private static AsyncLocal < IJSRuntime > _currentJSRuntime
15- = new AsyncLocal < IJSRuntime > ( ) ;
14+ private static readonly AsyncLocal < IJSRuntime > _currentJSRuntime = new AsyncLocal < IJSRuntime > ( ) ;
1615
17- /// <summary>
18- /// Gets the current <see cref="IJSRuntime"/>, if any.
19- /// </summary>
20- public static IJSRuntime Current => _currentJSRuntime . Value ;
16+ internal static IJSRuntime Current => _currentJSRuntime . Value ;
2117
2218 /// <summary>
2319 /// Sets the current JS runtime to the supplied instance.
You can’t perform that action at this time.
0 commit comments