5 implementations of InvokeAsync
Aspire.Dashboard.Tests (1)
LocalBrowserStorageTests.cs (1)
142public ValueTask<TValue> InvokeAsync<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.PublicProperties)] TValue>(string identifier, CancellationToken cancellationToken, object?[]? args)
Microsoft.AspNetCore.Components.Endpoints (1)
DependencyInjection\UnsupportedJavaScriptRuntime.cs (1)
12public ValueTask<TValue> InvokeAsync<TValue>(string identifier, CancellationToken cancellationToken, object?[]? args)
Microsoft.AspNetCore.Components.Server.Tests (1)
ProtectedBrowserStorageTest.cs (1)
360public ValueTask<TValue> InvokeAsync<TValue>(string identifier, CancellationToken cancellationToken, object[] args)
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
PullFromJSDataStreamTest.cs (1)
121public virtual ValueTask<TValue> InvokeAsync<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.PublicProperties)] TValue>(string identifier, CancellationToken cancellationToken, object[] args)
Microsoft.JSInterop (1)
JSRuntime.cs (1)
82public ValueTask<TValue> InvokeAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(string identifier, CancellationToken cancellationToken, object?[]? args)
14 references to InvokeAsync
Microsoft.AspNetCore.Components.Web.Tests (2)
Forms\BrowserFileTest.cs (2)
38jsRuntime.Setup(x => x.InvokeAsync<IJSStreamReference>(It.IsAny<string>(), It.IsAny<CancellationToken>(), It.IsAny<object[]>())) 62jsRuntime.Setup(x => x.InvokeAsync<IJSStreamReference>(It.IsAny<string>(), It.IsAny<CancellationToken>(), It.IsAny<object[]>()))
Microsoft.JSInterop (6)
IJSRuntime.cs (1)
18/// consider using <see cref="InvokeAsync{TValue}(string, CancellationToken, object[])" />.
JSRuntimeExtensions.cs (5)
33/// consider using <see cref="IJSRuntime.InvokeAsync{TValue}(string, CancellationToken, object[])" />. 64return jsRuntime.InvokeAsync<TValue>(identifier, cancellationToken, args); 82await jsRuntime.InvokeAsync<IJSVoidResult>(identifier, cancellationToken, args); 100return await jsRuntime.InvokeAsync<TValue>(identifier, cancellationToken, args); 118await jsRuntime.InvokeAsync<IJSVoidResult>(identifier, cancellationToken, args);
Microsoft.JSInterop.Tests (6)
JSRuntimeExtensionsTest.cs (6)
42jsRuntime.Setup(s => s.InvokeAsync<string>(method, cancellationToken, It.IsAny<object[]>())) 80jsRuntime.Setup(s => s.InvokeAsync<IJSVoidResult>(method, It.IsAny<CancellationToken>(), args)).Returns(new ValueTask<IJSVoidResult>(Mock.Of<IJSVoidResult>())); 96jsRuntime.Setup(s => s.InvokeAsync<string>(method, It.IsAny<CancellationToken>(), args)) 120jsRuntime.Setup(s => s.InvokeAsync<string>(method, It.IsAny<CancellationToken>(), args)) 142jsRuntime.Setup(s => s.InvokeAsync<IJSVoidResult>(method, It.IsAny<CancellationToken>(), args)) 164jsRuntime.Setup(s => s.InvokeAsync<IJSVoidResult>(method, It.IsAny<CancellationToken>(), args))