3 types derived from JSRuntime
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteJSRuntime.cs (1)
15internal partial class RemoteJSRuntime : JSRuntime
Microsoft.AspNetCore.Components.WebView (1)
Services\WebViewJSRuntime.cs (1)
10internal sealed class WebViewJSRuntime : JSRuntime
Microsoft.JSInterop (1)
JSInProcessRuntime.cs (1)
14public abstract class JSInProcessRuntime : JSRuntime, IJSInProcessRuntime
70 references to JSRuntime
Microsoft.JSInterop (70)
DotNetObjectReferenceOfT.cs (2)
23private JSRuntime? _jsRuntime; 62internal JSRuntime? JSRuntime
IJSObjectReference.cs (6)
17/// <see cref="JSRuntime"/> will apply timeouts to this operation based on the value configured in <see cref="JSRuntime.DefaultAsyncTimeout"/>. To dispatch a call with a different, or no timeout, 34/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied. 55/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied. 78/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied. 102/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied.
IJSRuntime.cs (6)
17/// <see cref="JSRuntime"/> will apply timeouts to this operation based on the value configured in <see cref="JSRuntime.DefaultAsyncTimeout"/>. To dispatch a call with a different timeout, or no timeout, 34/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied. 55/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied. 78/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied. 102/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied.
IJSStreamReference.cs (1)
17/// Opens a <see cref="Stream"/> with the <see cref="JSRuntime"/> for the current data reference.
Implementation\JSObjectReference.cs (3)
15private readonly JSRuntime _jsRuntime; 27/// <param name="jsRuntime">The <see cref="JSRuntime"/> used for invoking JS interop calls.</param> 29protected internal JSObjectReference(JSRuntime jsRuntime, long id)
Implementation\JSStreamReference.cs (3)
11private readonly JSRuntime _jsRuntime; 19/// <param name="jsRuntime">The <see cref="JSRuntime"/> used for invoking JS interop calls.</param> 22internal JSStreamReference(JSRuntime jsRuntime, long id, long totalLength) : base(jsRuntime, id)
Infrastructure\ByteArrayJsonConverter.cs (2)
16public ByteArrayJsonConverter(JSRuntime jSRuntime) 21public JSRuntime JSRuntime { get; }
Infrastructure\DotNetDispatcher.cs (11)
41/// <param name="jsRuntime">The <see cref="JSRuntime"/>.</param> 46public static string? Invoke(JSRuntime jsRuntime, in DotNetInvocationInfo invocationInfo, [StringSyntax(StringSyntaxAttribute.Json)] string argsJson) 71/// <param name="jsRuntime">The <see cref="JSRuntime"/>.</param> 76public static void BeginInvokeDotNet(JSRuntime jsRuntime, DotNetInvocationInfo invocationInfo, [StringSyntax(StringSyntaxAttribute.Json)] string argsJson) 144private static void EndInvokeDotNetAfterTask(Task task, JSRuntime jsRuntime, in DotNetInvocationInfo invocationInfo, bool isNonGenericTask) 166private static object? InvokeSynchronously(JSRuntime jsRuntime, in DotNetInvocationInfo callInfo, IDotNetObjectReference? objectReference, string argsJson, out Type? returnType) 227internal static object?[] ParseArguments(JSRuntime jsRuntime, string methodIdentifier, string arguments, Type[] parameterTypes) 312/// <param name="jsRuntime">The <see cref="JSRuntime"/>.</param> 318public static void EndInvokeJS(JSRuntime jsRuntime, [StringSyntax(StringSyntaxAttribute.Json)] string arguments) 355/// <param name="jsRuntime">The <see cref="JSRuntime"/>.</param> 358public static void ReceiveByteArray(JSRuntime jsRuntime, int id, byte[] data)
Infrastructure\DotNetObjectReferenceJsonConverter.cs (2)
13public DotNetObjectReferenceJsonConverter(JSRuntime jsRuntime) 20public JSRuntime JSRuntime { get; }
Infrastructure\DotNetObjectReferenceJsonConverterFactory.cs (2)
12public DotNetObjectReferenceJsonConverterFactory(JSRuntime jsRuntime) 17public JSRuntime JSRuntime { get; }
Infrastructure\DotNetStreamReferenceJsonConverter.cs (2)
13public DotNetStreamReferenceJsonConverter(JSRuntime jsRuntime) 18public JSRuntime JSRuntime { get; }
Infrastructure\IPendingAsyncCall.cs (1)
10void Complete(JSRuntime runtime, ref Utf8JsonReader reader);
Infrastructure\JSObjectReferenceJsonConverter.cs (2)
12private readonly JSRuntime _jsRuntime; 14public JSObjectReferenceJsonConverter(JSRuntime jsRuntime)
Infrastructure\JSStreamReferenceJsonConverter.cs (2)
14private readonly JSRuntime _jsRuntime; 16public JSStreamReferenceJsonConverter(JSRuntime jsRuntime)
Infrastructure\PendingAsyncCall.cs (1)
17public void Complete(JSRuntime runtime, ref Utf8JsonReader reader)
JSObjectReferenceExtensions.cs (10)
32/// <see cref="JSRuntime"/> will apply timeouts to this operation based on the value configured in <see cref="JSRuntime.DefaultAsyncTimeout"/>. To dispatch a call with a different timeout, or no timeout, 56/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied. 74/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied. 90/// <param name="timeout">The duration after which to cancel the async operation. Overrides default timeouts (<see cref="JSRuntime.DefaultAsyncTimeout"/>).</param> 108/// <param name="timeout">The duration after which to cancel the async operation. Overrides default timeouts (<see cref="JSRuntime.DefaultAsyncTimeout"/>).</param> 142/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied. 158/// <param name="timeout">The duration after which to cancel the async operation. Overrides default timeouts (<see cref="JSRuntime.DefaultAsyncTimeout"/>).</param> 177/// <param name="timeout">The duration after which to cancel the async operation. Overrides default timeouts (<see cref="JSRuntime.DefaultAsyncTimeout"/>).</param> 196/// <param name="timeout">The duration after which to cancel the async operation. Overrides default timeouts (<see cref="JSRuntime.DefaultAsyncTimeout"/>).</param>
JSRuntime.cs (4)
30/// Initializes a new instance of <see cref="JSRuntime"/>. 73/// <see cref="JSRuntime"/> will apply timeouts to this operation based on the value configured in <see cref="DefaultAsyncTimeout"/>. To dispatch a call with a different, or no timeout, 352var jsRuntime = dotNetObjectReference.JSRuntime; 364throw new InvalidOperationException($"{dotNetObjectReference.GetType().Name} is already being tracked by a different instance of {nameof(JSRuntime)}." +
JSRuntimeExtensions.cs (10)
32/// <see cref="JSRuntime"/> will apply timeouts to this operation based on the value configured in <see cref="JSRuntime.DefaultAsyncTimeout"/>. To dispatch a call with a different timeout, or no timeout, 56/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied. 74/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied. 90/// <param name="timeout">The duration after which to cancel the async operation. Overrides default timeouts (<see cref="JSRuntime.DefaultAsyncTimeout"/>).</param> 108/// <param name="timeout">The duration after which to cancel the async operation. Overrides default timeouts (<see cref="JSRuntime.DefaultAsyncTimeout"/>).</param> 142/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied. 158/// <param name="timeout">The duration after which to cancel the async operation. Overrides default timeouts (<see cref="JSRuntime.DefaultAsyncTimeout"/>).</param> 177/// <param name="timeout">The duration after which to cancel the async operation. Overrides default timeouts (<see cref="JSRuntime.DefaultAsyncTimeout"/>).</param> 196/// <param name="timeout">The duration after which to cancel the async operation. Overrides default timeouts (<see cref="JSRuntime.DefaultAsyncTimeout"/>).</param>