1 instantiation of DefaultWebAssemblyJSRuntime
Microsoft.AspNetCore.Components.WebAssembly (1)
Services\DefaultWebAssemblyJSRuntime.cs (1)
17
public static readonly DefaultWebAssemblyJSRuntime Instance =
new
();
47 references to DefaultWebAssemblyJSRuntime
Microsoft.AspNetCore.Components.WebAssembly (32)
Hosting\WebAssemblyHostBuilder.cs (2)
326
Services.AddSingleton<IJSRuntime>(
DefaultWebAssemblyJSRuntime
.Instance);
331
Services.AddSingleton(new LazyAssemblyLoader(
DefaultWebAssemblyJSRuntime
.Instance));
JSExports.g.cs (22)
89
__invokeRetVal = global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchLocationChanged(uri, state, isInterceptedLink);
124
__invokeRetVal = global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchLocationChanging(uri, state, isInterceptedLink);
160
__invokeRetVal = global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.UpdateRootComponents(operationsJson, appState);
231
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchMouseEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, detail, screenX, screenY, clientX, clientY, offsetX, offsetY, pageX, pageY, movementX, movementY, button, buttons, ctrlKey, shiftKey, altKey, metaKey, type);
312
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchDragEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, detail, screenX, screenY, clientX, clientY, offsetX, offsetY, pageX, pageY, movementX, movementY, button, buttons, ctrlKey, shiftKey, altKey, metaKey, type, dropEffect, effectAllowed, files, itemKinds, itemTypes, types);
365
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchKeyboardEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, key, code, location, repeat, ctrlKey, shiftKey, altKey, metaKey, type, isComposing);
398
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchChangeEventString(eventHandlerId, fieldComponentId, fieldValueString, value);
431
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchChangeEventBool(eventHandlerId, fieldComponentId, fieldValueBool, value);
464
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchChangeEventStringArray(eventHandlerId, fieldComponentId, fieldValueString, value);
499
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchFocusEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, type);
534
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchClipboardEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, type);
619
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchPointerEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, detail, screenX, screenY, clientX, clientY, offsetX, offsetY, pageX, pageY, movementX, movementY, button, buttons, ctrlKey, shiftKey, altKey, metaKey, type, pointerId, width, height, pressure, tiltX, tiltY, pointerType, isPrimary);
696
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchWheelEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, detail, screenX, screenY, clientX, clientY, offsetX, offsetY, pageX, pageY, movementX, movementY, button, buttons, ctrlKey, shiftKey, altKey, metaKey, type, deltaX, deltaY, deltaZ, deltaMode);
747
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchTouchEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, detail, touchesFlat, targetTouchesFlat, changedTouchesFlat, ctrlKey, shiftKey, altKey, metaKey, type);
788
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchProgressEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, lengthComputable, loaded, total, type);
831
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchErrorEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, message, filename, lineno, colno, type);
864
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchEmptyEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool);
901
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.DispatchEventJson(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, eventName, eventArgsJson);
936
__invokeRetVal = global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.InvokeDotNet(assemblyName, methodIdentifier, dotNetObjectId, argsJson);
965
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.EndInvokeJS(argsJson);
998
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.BeginInvokeDotNet(callId, assemblyNameOrDotNetObjectId, methodIdentifier, argsJson);
1027
global::Microsoft.AspNetCore.Components.WebAssembly.Services.
DefaultWebAssemblyJSRuntime
.ReceiveByteArrayFromJS(id, data);
Rendering\WebAssemblyRenderer.cs (6)
34
: base(serviceProvider, loggerFactory,
DefaultWebAssemblyJSRuntime
.Instance.ReadJsonSerializerOptions(), jsComponentInterop)
47
ElementReferenceContext =
DefaultWebAssemblyJSRuntime
.Instance.ElementReferenceContext;
48
DefaultWebAssemblyJSRuntime
.Instance.OnUpdateRootComponents += OnUpdateRootComponents;
49
DefaultWebAssemblyJSRuntime
.Instance.Renderer = this;
137
DefaultWebAssemblyJSRuntime
.Instance.OnUpdateRootComponents -= OnUpdateRootComponents;
138
DefaultWebAssemblyJSRuntime
.Instance.Renderer = null;
Services\DefaultWebAssemblyJSRuntime.cs (1)
17
public static readonly
DefaultWebAssemblyJSRuntime
Instance = new();
Services\InternalJSImportMethods.cs (1)
24
return
DefaultWebAssemblyJSRuntime
.DeserializeOperations(components);
Microsoft.AspNetCore.Components.WebAssembly.Tests (15)
EventDispatchTest.cs (14)
14
var result =
DefaultWebAssemblyJSRuntime
.CreateFieldInfo(-1, "someValue", false);
22
var result =
DefaultWebAssemblyJSRuntime
.CreateFieldInfo(-100, null, true);
30
var result =
DefaultWebAssemblyJSRuntime
.CreateFieldInfo(42, "hello", true);
40
var result =
DefaultWebAssemblyJSRuntime
.CreateFieldInfo(7, null, true);
50
var result =
DefaultWebAssemblyJSRuntime
.CreateFieldInfo(7, null, false);
60
var resultTrue1 =
DefaultWebAssemblyJSRuntime
.CreateFieldInfo(1, null, true);
61
var resultTrue2 =
DefaultWebAssemblyJSRuntime
.CreateFieldInfo(2, null, true);
62
var resultFalse1 =
DefaultWebAssemblyJSRuntime
.CreateFieldInfo(1, null, false);
63
var resultFalse2 =
DefaultWebAssemblyJSRuntime
.CreateFieldInfo(2, null, false);
73
var result =
DefaultWebAssemblyJSRuntime
.CreateFieldInfo(0, null, false);
82
var result =
DefaultWebAssemblyJSRuntime
.UnflattenTouchPoints([]);
90
var result =
DefaultWebAssemblyJSRuntime
.UnflattenTouchPoints(null);
100
var result =
DefaultWebAssemblyJSRuntime
.UnflattenTouchPoints(flat);
122
var result =
DefaultWebAssemblyJSRuntime
.UnflattenTouchPoints(flat);
JSObjectReferenceJsonConverterTest.cs (1)
17
JsonSerializerOptions =
DefaultWebAssemblyJSRuntime
.Instance.JsonSerializerOptions;