1 instantiation of DefaultWebAssemblyJSRuntime
Microsoft.AspNetCore.Components.WebAssembly (1)
Services\DefaultWebAssemblyJSRuntime.cs (1)
17public static readonly DefaultWebAssemblyJSRuntime Instance = new();
47 references to DefaultWebAssemblyJSRuntime
Microsoft.AspNetCore.Components.WebAssembly (32)
Hosting\WebAssemblyHostBuilder.cs (2)
326Services.AddSingleton<IJSRuntime>(DefaultWebAssemblyJSRuntime.Instance); 331Services.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); 231global::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); 312global::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); 365global::Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.DispatchKeyboardEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, key, code, location, repeat, ctrlKey, shiftKey, altKey, metaKey, type, isComposing); 398global::Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.DispatchChangeEventString(eventHandlerId, fieldComponentId, fieldValueString, value); 431global::Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.DispatchChangeEventBool(eventHandlerId, fieldComponentId, fieldValueBool, value); 464global::Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.DispatchChangeEventStringArray(eventHandlerId, fieldComponentId, fieldValueString, value); 499global::Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.DispatchFocusEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, type); 534global::Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.DispatchClipboardEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, type); 619global::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); 696global::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); 747global::Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.DispatchTouchEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, detail, touchesFlat, targetTouchesFlat, changedTouchesFlat, ctrlKey, shiftKey, altKey, metaKey, type); 788global::Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.DispatchProgressEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, lengthComputable, loaded, total, type); 831global::Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.DispatchErrorEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool, message, filename, lineno, colno, type); 864global::Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.DispatchEmptyEvent(eventHandlerId, fieldComponentId, fieldValueString, fieldValueBool); 901global::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); 965global::Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.EndInvokeJS(argsJson); 998global::Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.BeginInvokeDotNet(callId, assemblyNameOrDotNetObjectId, methodIdentifier, argsJson); 1027global::Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.ReceiveByteArrayFromJS(id, data);
Rendering\WebAssemblyRenderer.cs (6)
34: base(serviceProvider, loggerFactory, DefaultWebAssemblyJSRuntime.Instance.ReadJsonSerializerOptions(), jsComponentInterop) 47ElementReferenceContext = DefaultWebAssemblyJSRuntime.Instance.ElementReferenceContext; 48DefaultWebAssemblyJSRuntime.Instance.OnUpdateRootComponents += OnUpdateRootComponents; 49DefaultWebAssemblyJSRuntime.Instance.Renderer = this; 137DefaultWebAssemblyJSRuntime.Instance.OnUpdateRootComponents -= OnUpdateRootComponents; 138DefaultWebAssemblyJSRuntime.Instance.Renderer = null;
Services\DefaultWebAssemblyJSRuntime.cs (1)
17public static readonly DefaultWebAssemblyJSRuntime Instance = new();
Services\InternalJSImportMethods.cs (1)
24return DefaultWebAssemblyJSRuntime.DeserializeOperations(components);
Microsoft.AspNetCore.Components.WebAssembly.Tests (15)
EventDispatchTest.cs (14)
14var result = DefaultWebAssemblyJSRuntime.CreateFieldInfo(-1, "someValue", false); 22var result = DefaultWebAssemblyJSRuntime.CreateFieldInfo(-100, null, true); 30var result = DefaultWebAssemblyJSRuntime.CreateFieldInfo(42, "hello", true); 40var result = DefaultWebAssemblyJSRuntime.CreateFieldInfo(7, null, true); 50var result = DefaultWebAssemblyJSRuntime.CreateFieldInfo(7, null, false); 60var resultTrue1 = DefaultWebAssemblyJSRuntime.CreateFieldInfo(1, null, true); 61var resultTrue2 = DefaultWebAssemblyJSRuntime.CreateFieldInfo(2, null, true); 62var resultFalse1 = DefaultWebAssemblyJSRuntime.CreateFieldInfo(1, null, false); 63var resultFalse2 = DefaultWebAssemblyJSRuntime.CreateFieldInfo(2, null, false); 73var result = DefaultWebAssemblyJSRuntime.CreateFieldInfo(0, null, false); 82var result = DefaultWebAssemblyJSRuntime.UnflattenTouchPoints([]); 90var result = DefaultWebAssemblyJSRuntime.UnflattenTouchPoints(null); 100var result = DefaultWebAssemblyJSRuntime.UnflattenTouchPoints(flat); 122var result = DefaultWebAssemblyJSRuntime.UnflattenTouchPoints(flat);
JSObjectReferenceJsonConverterTest.cs (1)
17JsonSerializerOptions = DefaultWebAssemblyJSRuntime.Instance.JsonSerializerOptions;