6 types derived from JSRuntime
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteJSRuntime.cs (1)
15
internal partial class RemoteJSRuntime :
JSRuntime
Microsoft.AspNetCore.Components.WebView (1)
Services\WebViewJSRuntime.cs (1)
10
internal sealed class WebViewJSRuntime :
JSRuntime
Microsoft.JSInterop (1)
JSInProcessRuntime.cs (1)
13
public abstract class JSInProcessRuntime :
JSRuntime
, IJSInProcessRuntime
Microsoft.JSInterop.Tests (3)
JSObjectReferenceTest.cs (1)
68
class TestJSRuntime :
JSRuntime
JSRuntimeTest.cs (1)
446
class TestJSRuntime :
JSRuntime
TestJSRuntime.cs (1)
8
internal class TestJSRuntime :
JSRuntime
60 references to JSRuntime
Microsoft.JSInterop (54)
DotNetObjectReferenceOfT.cs (2)
23
private
JSRuntime
? _jsRuntime;
62
internal
JSRuntime
? JSRuntime
IJSObjectReference.cs (3)
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.
IJSRuntime.cs (3)
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.
IJSStreamReference.cs (1)
17
/// Opens a <see cref="Stream"/> with the <see cref="
JSRuntime
"/> for the current data reference.
Implementation\JSObjectReference.cs (3)
14
private readonly
JSRuntime
_jsRuntime;
26
/// <param name="jsRuntime">The <see cref="
JSRuntime
"/> used for invoking JS interop calls.</param>
28
protected internal JSObjectReference(
JSRuntime
jsRuntime, long id)
Implementation\JSStreamReference.cs (3)
11
private readonly
JSRuntime
_jsRuntime;
19
/// <param name="jsRuntime">The <see cref="
JSRuntime
"/> used for invoking JS interop calls.</param>
22
internal JSStreamReference(
JSRuntime
jsRuntime, long id, long totalLength) : base(jsRuntime, id)
Infrastructure\ByteArrayJsonConverter.cs (2)
16
public ByteArrayJsonConverter(
JSRuntime
jSRuntime)
21
public
JSRuntime
JSRuntime { get; }
Infrastructure\DotNetDispatcher.cs (11)
40
/// <param name="jsRuntime">The <see cref="
JSRuntime
"/>.</param>
45
public static string? Invoke(
JSRuntime
jsRuntime, in DotNetInvocationInfo invocationInfo, [StringSyntax(StringSyntaxAttribute.Json)] string argsJson)
70
/// <param name="jsRuntime">The <see cref="
JSRuntime
"/>.</param>
75
public static void BeginInvokeDotNet(
JSRuntime
jsRuntime, DotNetInvocationInfo invocationInfo, [StringSyntax(StringSyntaxAttribute.Json)] string argsJson)
142
private static void EndInvokeDotNetAfterTask(Task task,
JSRuntime
jsRuntime, in DotNetInvocationInfo invocationInfo)
156
private static object? InvokeSynchronously(
JSRuntime
jsRuntime, in DotNetInvocationInfo callInfo, IDotNetObjectReference? objectReference, string argsJson)
215
internal static object?[] ParseArguments(
JSRuntime
jsRuntime, string methodIdentifier, string arguments, Type[] parameterTypes)
300
/// <param name="jsRuntime">The <see cref="
JSRuntime
"/>.</param>
306
public static void EndInvokeJS(
JSRuntime
jsRuntime, string arguments)
343
/// <param name="jsRuntime">The <see cref="
JSRuntime
"/>.</param>
346
public static void ReceiveByteArray(
JSRuntime
jsRuntime, int id, byte[] data)
Infrastructure\DotNetObjectReferenceJsonConverter.cs (2)
13
public DotNetObjectReferenceJsonConverter(
JSRuntime
jsRuntime)
20
public
JSRuntime
JSRuntime { get; }
Infrastructure\DotNetObjectReferenceJsonConverterFactory.cs (2)
12
public DotNetObjectReferenceJsonConverterFactory(
JSRuntime
jsRuntime)
17
public
JSRuntime
JSRuntime { get; }
Infrastructure\DotNetStreamReferenceJsonConverter.cs (2)
13
public DotNetStreamReferenceJsonConverter(
JSRuntime
jsRuntime)
18
public
JSRuntime
JSRuntime { get; }
Infrastructure\JSObjectReferenceJsonConverter.cs (2)
12
private readonly
JSRuntime
_jsRuntime;
14
public JSObjectReferenceJsonConverter(
JSRuntime
jsRuntime)
Infrastructure\JSStreamReferenceJsonConverter.cs (2)
14
private readonly
JSRuntime
_jsRuntime;
16
public JSStreamReferenceJsonConverter(
JSRuntime
jsRuntime)
JSObjectReferenceExtensions.cs (6)
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>
JSRuntime.cs (4)
27
/// Initializes a new instance of <see cref="
JSRuntime
"/>.
60
/// <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,
301
var
jsRuntime = dotNetObjectReference.JSRuntime;
313
throw new InvalidOperationException($"{dotNetObjectReference.GetType().Name} is already being tracked by a different instance of {nameof(
JSRuntime
)}." +
JSRuntimeExtensions.cs (6)
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>
Microsoft.JSInterop.Tests (6)
DotNetObjectReferenceTest.cs (1)
50
var expected = $"{objRef.GetType().Name} is already being tracked by a different instance of {nameof(
JSRuntime
)}. A common cause is caching an instance of {nameof(DotNetObjectReference<string>)}" +
Infrastructure\ByteArrayJsonConverterTest.cs (1)
10
private readonly
JSRuntime
JSRuntime;
Infrastructure\DotNetObjectReferenceJsonConverterTest.cs (1)
10
private readonly
JSRuntime
JSRuntime = new TestJSRuntime();
Infrastructure\DotNetStreamReferenceJsonConverterTest.cs (1)
10
private readonly
JSRuntime
JSRuntime = new TestJSRuntime();
Infrastructure\JSObjectReferenceJsonConverterTest.cs (1)
11
private readonly
JSRuntime
JSRuntime = new TestJSRuntime();
Infrastructure\JSStreamReferenceJsonConverterTest.cs (1)
11
private readonly
JSRuntime
JSRuntime = new TestJSRuntime();