1 interface inheriting from IJSObjectReference
Microsoft.JSInterop (1)
IJSInProcessObjectReference.cs (1)
12
public interface IJSInProcessObjectReference :
IJSObjectReference
, IDisposable
1 implementation of IJSObjectReference
Microsoft.JSInterop (1)
Implementation\JSObjectReference.cs (1)
13
public class JSObjectReference :
IJSObjectReference
97 references to IJSObjectReference
Aspire.Dashboard (23)
Components\Controls\AssistantChat.razor.cs (2)
48
private
IJSObjectReference
? _module;
148
_module = await JS.InvokeAsync<
IJSObjectReference
>("import", "./Components/Controls/AssistantChat.razor.js");
Components\Controls\Chart\MetricTable.razor.cs (2)
25
private
IJSObjectReference
? _jsModule;
250
_jsModule = await JS.InvokeAsync<
IJSObjectReference
>("import", "/Components/Controls/Chart/MetricTable.razor.js");
Components\Controls\Chart\PlotlyChart.razor.cs (2)
42
private
IJSObjectReference
? _jsModule;
190
_jsModule = await JS.InvokeAsync<
IJSObjectReference
>("import", "/js/app-metrics.js");
Components\Controls\MarkdownRenderer.razor.cs (2)
12
private
IJSObjectReference
? _jsModule;
47
_jsModule = await JS.InvokeAsync<
IJSObjectReference
>("import", "/Components/Controls/MarkdownRenderer.razor.js");
Components\Controls\TextVisualizer.razor.cs (2)
14
private
IJSObjectReference
? _jsModule;
62
_jsModule = await JS.InvokeAsync<
IJSObjectReference
>("import", "/Components/Controls/TextVisualizer.razor.js");
Components\Dialogs\InteractionsInputDialog.razor.cs (2)
42
private
IJSObjectReference
? _jsModule;
87
_jsModule = await JS.InvokeAsync<
IJSObjectReference
>("import", "./Components/Dialogs/InteractionsInputDialog.razor.js");
Components\Layout\MainLayout.razor.cs (4)
25
private
IJSObjectReference
? _jsModule;
26
private
IJSObjectReference
? _keyboardHandlers;
211
_jsModule = await JS.InvokeAsync<
IJSObjectReference
>("import", "/js/app-theme.js");
214
_keyboardHandlers = await JS.InvokeAsync<
IJSObjectReference
>("window.registerGlobalKeydownListener", _shortcutManagerReference);
Components\Pages\Login.razor.cs (2)
17
private
IJSObjectReference
? _jsModule;
72
_jsModule = await JS.InvokeAsync<
IJSObjectReference
>("import", "/Components/Pages/Login.razor.js");
Components\Pages\Resources.razor.cs (2)
129
private
IJSObjectReference
? _jsModule;
408
_jsModule = await JS.InvokeAsync<
IJSObjectReference
>("import", "/js/app-resourcegraph.js");
Model\ThemeManager.cs (2)
21
private
IJSObjectReference
? _jsModule;
27
_jsModule = await _jsRuntime.InvokeAsync<
IJSObjectReference
>("import", "/js/app-theme.js").ConfigureAwait(false);
Utils\JSInteropHelpers.cs (1)
10
public static async Task SafeDisposeAsync(
IJSObjectReference
? jsObjectReference)
Microsoft.AspNetCore.Components.Endpoints (4)
DependencyInjection\UnsupportedJavaScriptRuntime.cs (2)
20
public ValueTask<
IJSObjectReference
> InvokeConstructorAsync(string identifier, object?[]? args)
23
public ValueTask<
IJSObjectReference
> InvokeConstructorAsync(string identifier, CancellationToken cancellationToken, object?[]? args)
src\aspnetcore\src\Components\Shared\src\ResourceCollectionProvider.cs (2)
57
var
module = await _jsRuntime.InvokeAsync<
IJSObjectReference
>("import", _url);
Microsoft.AspNetCore.Components.Web (4)
JSComponents\JSComponentInterop.cs (4)
109
JsonSerializer.Deserialize<
IJSObjectReference
>(parameterJsonValue, jsonOptions)),
112
JsonSerializer.Deserialize<
IJSObjectReference
>(parameterJsonValue, jsonOptions)),
174
private static EventCallback CreateEventCallbackWithNoParameters(
IJSObjectReference
? jsObjectReference)
182
private static object CreateEventCallbackWithSingleParameter(Type eventCallbackType,
IJSObjectReference
? jsObjectReference)
Microsoft.AspNetCore.Components.WebView.Maui (2)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (2)
154
await using
var
module = await JSRuntime.InvokeAsync<
IJSObjectReference
>("import", "./_framework/static-content-hot-reload.js");
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (2)
154
await using
var
module = await JSRuntime.InvokeAsync<
IJSObjectReference
>("import", "./_framework/static-content-hot-reload.js");
Microsoft.AspNetCore.Components.WebView.Wpf (2)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (2)
154
await using
var
module = await JSRuntime.InvokeAsync<
IJSObjectReference
>("import", "./_framework/static-content-hot-reload.js");
Microsoft.JSInterop (60)
IJSInProcessRuntime.cs (1)
29
/// <returns>An <see cref="
IJSObjectReference
"/> instance that represents the created JS object.</returns>
IJSObjectReference.cs (4)
45
/// <returns>An <see cref="
IJSObjectReference
"/> instance that represents the created JS object.</returns>
46
ValueTask<
IJSObjectReference
> InvokeConstructorAsync(string identifier, object?[]? args)
58
/// <returns>An <see cref="
IJSObjectReference
"/> instance that represents the created JS object.</returns>
59
ValueTask<
IJSObjectReference
> InvokeConstructorAsync(string identifier, CancellationToken cancellationToken, object?[]? args)
IJSRuntime.cs (4)
45
/// <returns>An <see cref="
IJSObjectReference
"/> instance that represents the created JS object.</returns>
46
ValueTask<
IJSObjectReference
> InvokeConstructorAsync(string identifier, object?[]? args)
58
/// <returns>An <see cref="
IJSObjectReference
"/> instance that represents the created JS object.</returns>
59
ValueTask<
IJSObjectReference
> InvokeConstructorAsync(string identifier, CancellationToken cancellationToken, object?[]? args)
Implementation\JSObjectReference.cs (5)
11
/// Implements functionality for <see cref="
IJSObjectReference
"/>.
53
public ValueTask<
IJSObjectReference
> InvokeConstructorAsync(string identifier, object?[]? args)
57
return _jsRuntime.InvokeAsync<
IJSObjectReference
>(Id, identifier, JSCallType.ConstructorCall, args);
61
public ValueTask<
IJSObjectReference
> InvokeConstructorAsync(string identifier, CancellationToken cancellationToken, object?[]? args)
65
return _jsRuntime.InvokeAsync<
IJSObjectReference
>(Id, identifier, JSCallType.ConstructorCall, cancellationToken, args);
Implementation\JSObjectReferenceJsonWorker.cs (1)
9
/// Used by JsonConverters to read or write a <see cref="
IJSObjectReference
"/> instance.
Infrastructure\JSObjectReferenceJsonConverter.cs (4)
10
internal sealed class JSObjectReferenceJsonConverter : JsonConverter<
IJSObjectReference
>
20
=> typeToConvert == typeof(
IJSObjectReference
) || typeToConvert == typeof(JSObjectReference);
22
public override
IJSObjectReference
? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
34
public override void Write(Utf8JsonWriter writer,
IJSObjectReference
value, JsonSerializerOptions options)
JSObjectReferenceExtensions.cs (30)
11
/// Extensions for <see cref="
IJSObjectReference
"/>.
18
/// <param name="jsObjectReference">The <see cref="
IJSObjectReference
"/>.</param>
22
public static async ValueTask InvokeVoidAsync(this
IJSObjectReference
jsObjectReference, string identifier, params object?[]? args)
33
/// consider using <see cref="
IJSObjectReference
.InvokeAsync{TValue}(string, CancellationToken, object[])" />.
36
/// <param name="jsObjectReference">The <see cref="
IJSObjectReference
"/>.</param>
41
public static ValueTask<TValue> InvokeAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(this
IJSObjectReference
jsObjectReference, string identifier, params object?[]? args)
52
/// <param name="jsObjectReference">The <see cref="
IJSObjectReference
"/>.</param>
60
public static ValueTask<TValue> InvokeAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(this
IJSObjectReference
jsObjectReference, string identifier, CancellationToken cancellationToken, params object?[]? args)
70
/// <param name="jsObjectReference">The <see cref="
IJSObjectReference
"/>.</param>
78
public static async ValueTask InvokeVoidAsync(this
IJSObjectReference
jsObjectReference, string identifier, CancellationToken cancellationToken, params object?[]? args)
88
/// <param name="jsObjectReference">The <see cref="
IJSObjectReference
"/>.</param>
93
public static async ValueTask<TValue> InvokeAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(this
IJSObjectReference
jsObjectReference, string identifier, TimeSpan timeout, params object?[]? args)
106
/// <param name="jsObjectReference">The <see cref="
IJSObjectReference
"/>.</param>
111
public static async ValueTask InvokeVoidAsync(this
IJSObjectReference
jsObjectReference, string identifier, TimeSpan timeout, params object?[]? args)
124
/// <param name="jsObjectReference">The <see cref="
IJSObjectReference
"/>.</param>
127
/// <returns>An <see cref="
IJSObjectReference
"/> instance that represents the created JS object.</returns>
128
public static ValueTask<
IJSObjectReference
> InvokeConstructorAsync(this
IJSObjectReference
jsObjectReference, string identifier, params object?[]? args)
138
/// <param name="jsObjectReference">The <see cref="
IJSObjectReference
"/>.</param>
145
/// <returns>An <see cref="
IJSObjectReference
"/> instance that represents the created JS object.</returns>
146
public static ValueTask<
IJSObjectReference
> InvokeConstructorAsync(this
IJSObjectReference
jsObjectReference, string identifier, CancellationToken cancellationToken, object?[]? args)
156
/// <param name="jsObjectReference">The <see cref="
IJSObjectReference
"/>.</param>
160
/// <returns>An <see cref="
IJSObjectReference
"/> instance that represents the created JS object.</returns>
161
public static ValueTask<
IJSObjectReference
> InvokeConstructorAsync(this
IJSObjectReference
jsObjectReference, string identifier, TimeSpan timeout, object?[]? args)
175
/// <param name="jsObjectReference">The <see cref="
IJSObjectReference
"/>.</param>
179
public static ValueTask<TValue> GetValueAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(this
IJSObjectReference
jsObjectReference, string identifier, TimeSpan timeout)
193
/// <param name="jsObjectReference">The <see cref="
IJSObjectReference
"/>.</param>
198
public static ValueTask SetValueAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(this
IJSObjectReference
jsObjectReference, string identifier, TValue value, TimeSpan timeout)
JSRuntime.cs (4)
88
public ValueTask<
IJSObjectReference
> InvokeConstructorAsync(string identifier, object?[]? args)
89
=> InvokeAsync<
IJSObjectReference
>(WindowObjectId, identifier, JSCallType.ConstructorCall, args);
92
public ValueTask<
IJSObjectReference
> InvokeConstructorAsync(string identifier, CancellationToken cancellationToken, object?[]? args)
93
=> InvokeAsync<
IJSObjectReference
>(WindowObjectId, identifier, JSCallType.ConstructorCall, cancellationToken, args);
JSRuntimeExtensions.cs (6)
127
/// <returns>An <see cref="
IJSObjectReference
"/> instance that represents the created JS object.</returns>
128
public static ValueTask<
IJSObjectReference
> InvokeConstructorAsync(this IJSRuntime jsRuntime, string identifier, params object?[]? args)
145
/// <returns>An <see cref="
IJSObjectReference
"/> instance that represents the created JS object.</returns>
146
public static ValueTask<
IJSObjectReference
> InvokeConstructorAsync(this IJSRuntime jsRuntime, string identifier, CancellationToken cancellationToken, object?[]? args)
160
/// <returns>An <see cref="
IJSObjectReference
"/> instance that represents the created JS object.</returns>
161
public static ValueTask<
IJSObjectReference
> InvokeConstructorAsync(this IJSRuntime jsRuntime, string identifier, TimeSpan timeout, object?[]? args)
src\aspnetcore\src\Shared\JSInterop\JSCallResultTypeHelper.cs (1)
18
if (typeof(TResult) == typeof(
IJSObjectReference
) ||