1 interface inheriting from IJSRuntime
Microsoft.JSInterop (1)
IJSInProcessRuntime.cs (1)
12
public interface IJSInProcessRuntime :
IJSRuntime
3 implementations of IJSRuntime
Aspire.Dashboard.Tests (1)
LocalBrowserStorageTests.cs (1)
129
private sealed class TestJSRuntime :
IJSRuntime
Microsoft.AspNetCore.Components.Endpoints (1)
DependencyInjection\UnsupportedJavaScriptRuntime.cs (1)
10
internal sealed class UnsupportedJavaScriptRuntime :
IJSRuntime
Microsoft.JSInterop (1)
JSRuntime.cs (1)
16
public abstract partial class JSRuntime :
IJSRuntime
, IDisposable
98 references to IJSRuntime
Aspire.Dashboard (30)
Components\Controls\AssistantChat.razor.cs (1)
31
public required
IJSRuntime
JS { get; init; }
Components\Controls\Chart\MetricTable.razor.cs (1)
35
public required
IJSRuntime
JS { get; init; }
Components\Controls\Chart\PlotlyChart.razor.cs (1)
25
public required
IJSRuntime
JS { get; init; }
Components\Controls\GridValue.razor.cs (1)
100
public required
IJSRuntime
JS { get; init; }
Components\Controls\MarkdownRenderer.razor.cs (1)
19
public required
IJSRuntime
JS { get; init; }
Components\Controls\ResourceDetails.razor.cs (1)
47
public required
IJSRuntime
JS { get; init; }
Components\Controls\SpanDetails.razor.cs (1)
41
public required
IJSRuntime
JS { get; init; }
Components\Controls\StructuredLogDetails.razor.cs (1)
27
public required
IJSRuntime
JS { get; init; }
Components\Controls\SummaryDetailsView.razor.cs (1)
65
public required
IJSRuntime
JS { get; init; }
Components\Controls\TextVisualizer.razor.cs (1)
23
public required
IJSRuntime
JS { get; init; }
Components\Dialogs\AssistantModalDialog.razor.cs (1)
29
public required
IJSRuntime
JS { get; init; }
Components\Dialogs\GenAIVisualizerDialog.razor.cs (1)
62
public required
IJSRuntime
JS { get; init; }
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
34
public required
IJSRuntime
JS { get; init; }
Components\Dialogs\ManageDataDialog.razor.cs (1)
48
public required
IJSRuntime
JS { get; init; }
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
38
public required
IJSRuntime
JS { get; init; }
Components\Layout\MainLayout.razor.cs (1)
45
public required
IJSRuntime
JS { get; init; }
Components\Layout\MobileNavMenu.razor.cs (1)
29
public required
IJSRuntime
JS { get; init; }
Components\Pages\ConsoleLogs.razor.cs (1)
104
public required
IJSRuntime
JS { get; init; }
Components\Pages\Login.razor.cs (1)
31
public required
IJSRuntime
JS { get; init; }
Components\Pages\Resources.razor.cs (1)
59
public required
IJSRuntime
JS { get; init; }
Components\Pages\TraceDetail.razor.cs (1)
76
public required
IJSRuntime
JS { get; init; }
Components\Resize\BrowserDimensionWatcher.cs (1)
19
public required
IJSRuntime
JS { get; init; }
Extensions\JSInteropExtensions.cs (4)
10
/// Extension methods for <see cref="
IJSRuntime
"/>.
20
public static async Task DownloadFileAsync(this
IJSRuntime
js, string fileName, byte[] content)
32
public static Task DownloadFileAsync(this
IJSRuntime
js, string fileName, string content)
43
public static async Task DownloadFileAsync(this
IJSRuntime
js, string fileName, Stream stream)
Model\BrowserStorage\LocalBrowserStorage.cs (2)
18
private readonly
IJSRuntime
_jsRuntime;
20
public LocalBrowserStorage(
IJSRuntime
jsRuntime, ProtectedLocalStorage protectedLocalStorage, ILogger<LocalBrowserStorage> logger) : base(protectedLocalStorage, logger)
Model\ThemeManager.cs (2)
18
public sealed class BrowserThemeResolver(
IJSRuntime
jsRuntime) : IThemeResolver, IAsyncDisposable
20
private readonly
IJSRuntime
_jsRuntime = jsRuntime;
Microsoft.AspNetCore.Components.Endpoints (4)
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (1)
61
services.TryAddScoped<
IJSRuntime
, UnsupportedJavaScriptRuntime>();
DependencyInjection\UnsupportedJavaScriptRuntime.cs (1)
17
ValueTask<TValue>
IJSRuntime
.InvokeAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(string identifier, object?[]? args)
src\aspnetcore\src\Components\Shared\src\ResourceCollectionProvider.cs (2)
31
private readonly
IJSRuntime
_jsRuntime;
32
public ResourceCollectionProvider(
IJSRuntime
jsRuntime)
Microsoft.AspNetCore.Components.Server (19)
Circuits\CircuitFactory.cs (1)
51
var jsRuntime = (RemoteJSRuntime)scope.ServiceProvider.GetRequiredService<
IJSRuntime
>();
Circuits\RemoteErrorBoundaryLogger.cs (2)
14
private readonly
IJSRuntime
_jsRuntime;
17
public RemoteErrorBoundaryLogger(ILogger<ErrorBoundary> logger,
IJSRuntime
jsRuntime, IOptions<CircuitOptions> options)
Circuits\RemoteNavigationInterception.cs (2)
12
private
IJSRuntime
_jsRuntime;
14
public void AttachJSRuntime(
IJSRuntime
jsRuntime)
Circuits\RemoteNavigationManager.cs (4)
18
private
IJSRuntime
_jsRuntime;
39
/// Gets or sets whether the circuit has an attached <see cref="
IJSRuntime
"/>.
70
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/> to use for interoperability.</param>
71
public void AttachJsRuntime(
IJSRuntime
jsRuntime)
Circuits\RemoteScrollToLocationHash.cs (2)
12
private
IJSRuntime
_jsRuntime;
14
public void AttachJSRuntime(
IJSRuntime
jsRuntime)
DependencyInjection\ComponentServiceCollectionExtensions.cs (1)
109
services.AddScoped<
IJSRuntime
, RemoteJSRuntime>();
ProtectedBrowserStorage\ProtectedBrowserStorage.cs (3)
17
private readonly
IJSRuntime
_jsRuntime;
26
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/>.</param>
28
private protected ProtectedBrowserStorage(string storeName,
IJSRuntime
jsRuntime, IDataProtectionProvider dataProtectionProvider)
ProtectedBrowserStorage\ProtectedLocalStorage.cs (2)
23
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/>.</param>
25
public ProtectedLocalStorage(
IJSRuntime
jsRuntime, IDataProtectionProvider dataProtectionProvider)
ProtectedBrowserStorage\ProtectedSessionStorage.cs (2)
23
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/>.</param>
25
public ProtectedSessionStorage(
IJSRuntime
jsRuntime, IDataProtectionProvider dataProtectionProvider)
Microsoft.AspNetCore.Components.Web (18)
ElementReferenceExtensions.cs (2)
34
var
jsRuntime = elementReference.GetJSRuntime();
44
internal static
IJSRuntime
GetJSRuntime(this ElementReference elementReference)
Forms\InputFile.cs (1)
20
internal
IJSRuntime
JSRuntime { get; set; } = default!; // Internal for testing
Forms\InputFile\BrowserFileStream.cs (2)
11
private readonly
IJSRuntime
_jsRuntime;
23
IJSRuntime
jsRuntime,
Head\HeadOutlet.cs (1)
23
private
IJSRuntime
JSRuntime { get; set; } = default!;
Media\MediaComponentBase.cs (1)
65
[Inject] internal
IJSRuntime
JSRuntime { get; set; } = default!;
Routing\FocusOnNavigate.cs (1)
21
[Inject] private
IJSRuntime
JSRuntime { get; set; } = default!;
Routing\NavigationLock.cs (1)
24
private
IJSRuntime
JSRuntime { get; set; } = default!;
Virtualization\Virtualize.cs (1)
83
private
IJSRuntime
JSRuntime { get; set; } = default!;
Virtualization\VirtualizeJsInterop.cs (2)
15
private readonly
IJSRuntime
_jsRuntime;
21
public VirtualizeJsInterop(IVirtualizeJsCallbacks owner,
IJSRuntime
jsRuntime)
WebElementReferenceContext.cs (3)
13
internal
IJSRuntime
JSRuntime { get; }
18
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/>.</param>
19
public WebElementReferenceContext(
IJSRuntime
jsRuntime)
WebRenderer.cs (3)
45
var
jsRuntime = serviceProvider.GetRequiredService<
IJSRuntime
>();
104
private void AttachWebRendererInterop(
IJSRuntime
jsRuntime, JsonSerializerOptions jsonOptions, JSComponentInterop jsComponentInterop)
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
130
[Inject] private
IJSRuntime
JSRuntime { get; set; } = default!;
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
130
[Inject] private
IJSRuntime
JSRuntime { get; set; } = default!;
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
130
[Inject] private
IJSRuntime
JSRuntime { get; set; } = default!;
Microsoft.JSInterop (24)
JSRuntimeExtensions.cs (24)
11
/// Extensions for <see cref="
IJSRuntime
"/>.
18
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/>.</param>
22
public static async ValueTask InvokeVoidAsync(this
IJSRuntime
jsRuntime, string identifier, params object?[]? args)
33
/// consider using <see cref="
IJSRuntime
.InvokeAsync{TValue}(string, CancellationToken, object[])" />.
36
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/>.</param>
41
public static ValueTask<TValue> InvokeAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(this
IJSRuntime
jsRuntime, string identifier, params object?[]? args)
52
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/>.</param>
60
public static ValueTask<TValue> InvokeAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(this
IJSRuntime
jsRuntime, string identifier, CancellationToken cancellationToken, params object?[]? args)
70
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/>.</param>
78
public static async ValueTask InvokeVoidAsync(this
IJSRuntime
jsRuntime, string identifier, CancellationToken cancellationToken, params object?[]? args)
88
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/>.</param>
93
public static async ValueTask<TValue> InvokeAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(this
IJSRuntime
jsRuntime, string identifier, TimeSpan timeout, params object?[]? args)
106
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/>.</param>
111
public static async ValueTask InvokeVoidAsync(this
IJSRuntime
jsRuntime, string identifier, TimeSpan timeout, params object?[]? args)
124
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/>.</param>
128
public static ValueTask<IJSObjectReference> InvokeConstructorAsync(this
IJSRuntime
jsRuntime, string identifier, params object?[]? args)
138
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/>.</param>
146
public static ValueTask<IJSObjectReference> InvokeConstructorAsync(this
IJSRuntime
jsRuntime, string identifier, CancellationToken cancellationToken, object?[]? args)
156
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/>.</param>
161
public static ValueTask<IJSObjectReference> InvokeConstructorAsync(this
IJSRuntime
jsRuntime, string identifier, TimeSpan timeout, object?[]? args)
175
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/>.</param>
179
public static ValueTask<TValue> GetValueAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(this
IJSRuntime
jsRuntime, string identifier, TimeSpan timeout)
193
/// <param name="jsRuntime">The <see cref="
IJSRuntime
"/>.</param>
198
public static ValueTask SetValueAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(this
IJSRuntime
jsRuntime, string identifier, TValue value, TimeSpan timeout)