1 interface inheriting from IJSObjectReference
Microsoft.JSInterop (1)
1 implementation of IJSObjectReference
Microsoft.JSInterop (1)
125 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 (5)
Microsoft.AspNetCore.Components.WebView.Maui (2)
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
Microsoft.AspNetCore.Components.WebView.Wpf (2)
Microsoft.JSInterop (60)
Implementation\JSObjectReference.cs (5)
11/// Implements functionality for <see cref="IJSObjectReference"/>.
53public ValueTask<IJSObjectReference> InvokeConstructorAsync(string identifier, object?[]? args)
57return _jsRuntime.InvokeAsync<IJSObjectReference>(Id, identifier, JSCallType.ConstructorCall, args);
61public ValueTask<IJSObjectReference> InvokeConstructorAsync(string identifier, CancellationToken cancellationToken, object?[]? args)
65return _jsRuntime.InvokeAsync<IJSObjectReference>(Id, identifier, JSCallType.ConstructorCall, cancellationToken, args);
JSObjectReferenceExtensions.cs (30)
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> 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>
146public 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>
161public static ValueTask<IJSObjectReference> InvokeConstructorAsync(this IJSObjectReference jsObjectReference, string identifier, TimeSpan timeout, object?[]? args)
175/// <param name="jsObjectReference">The <see cref="IJSObjectReference"/>.</param>
179public static ValueTask<TValue> GetValueAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(this IJSObjectReference jsObjectReference, string identifier, TimeSpan timeout)
193/// <param name="jsObjectReference">The <see cref="IJSObjectReference"/>.</param>
198public static ValueTask SetValueAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(this IJSObjectReference jsObjectReference, string identifier, TValue value, TimeSpan timeout)
JSRuntime.cs (4)
88public ValueTask<IJSObjectReference> InvokeConstructorAsync(string identifier, object?[]? args)
89=> InvokeAsync<IJSObjectReference>(WindowObjectId, identifier, JSCallType.ConstructorCall, args);
92public ValueTask<IJSObjectReference> InvokeConstructorAsync(string identifier, CancellationToken cancellationToken, object?[]? args)
93=> InvokeAsync<IJSObjectReference>(WindowObjectId, identifier, JSCallType.ConstructorCall, cancellationToken, args);
Microsoft.JSInterop.Tests (8)
Microsoft.JSInterop.WebAssembly (5)