1 interface inheriting from IJSObjectReference
Microsoft.JSInterop (1)
1 implementation of IJSObjectReference
Microsoft.JSInterop (1)
117 references to IJSObjectReference
Aspire.Dashboard (17)
BasicTestApp (6)
Microsoft.AspNetCore.Components.Endpoints (4)
Microsoft.AspNetCore.Components.QuickGrid (4)
Microsoft.AspNetCore.Components.Server.Tests (4)
Microsoft.AspNetCore.Components.Web (4)
Microsoft.AspNetCore.Components.WebAssembly (2)
Microsoft.AspNetCore.Components.WebAssembly.Tests (3)
Microsoft.AspNetCore.Components.WebView.Maui (2)
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
Microsoft.AspNetCore.Components.WebView.Wpf (2)
Microsoft.JSInterop (56)
Implementation\JSObjectReference.cs (5)
11/// Implements functionality for <see cref="IJSObjectReference"/>.
53public ValueTask<IJSObjectReference> InvokeNewAsync(string identifier, object?[]? args)
57return _jsRuntime.InvokeAsync<IJSObjectReference>(Id, identifier, JSCallType.NewCall, args);
61public ValueTask<IJSObjectReference> InvokeNewAsync(string identifier, CancellationToken cancellationToken, object?[]? args)
65return _jsRuntime.InvokeAsync<IJSObjectReference>(Id, identifier, JSCallType.NewCall, cancellationToken, args);
JSObjectReferenceExtensions.cs (26)
11/// Extensions for <see cref="IJSObjectReference"/>.
18/// <param name="jsObjectReference">The <see cref="IJSObjectReference"/>.</param>
22public 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>
41public static ValueTask<TValue> InvokeAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(this IJSObjectReference jsObjectReference, string identifier, params object?[]? args)
52/// <param name="jsObjectReference">The <see cref="IJSObjectReference"/>.</param>
60public 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>
78public static async ValueTask InvokeVoidAsync(this IJSObjectReference jsObjectReference, string identifier, CancellationToken cancellationToken, params object?[]? args)
88/// <param name="jsObjectReference">The <see cref="IJSObjectReference"/>.</param>
93public 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>
111public 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>
128public static ValueTask<IJSObjectReference> InvokeNewAsync(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>
146public static ValueTask<IJSObjectReference> InvokeNewAsync(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>
161public static ValueTask<IJSObjectReference> InvokeNewAsync(this IJSObjectReference jsObjectReference, string identifier, TimeSpan timeout, object?[]? args)
JSRuntime.cs (4)
88public ValueTask<IJSObjectReference> InvokeNewAsync(string identifier, object?[]? args)
89=> InvokeAsync<IJSObjectReference>(WindowObjectId, identifier, JSCallType.NewCall, args);
92public ValueTask<IJSObjectReference> InvokeNewAsync(string identifier, CancellationToken cancellationToken, object?[]? args)
93=> InvokeAsync<IJSObjectReference>(WindowObjectId, identifier, JSCallType.NewCall, cancellationToken, args);
Microsoft.JSInterop.Tests (6)
Microsoft.JSInterop.WebAssembly (5)