104 instantiations of JSInvokableAttribute
Aspire.Dashboard (4)
Components\Controls\Chart\PlotlyChart.razor.cs (1)
206[JSInvokable]
Components\Pages\Resources.razor.cs (1)
319[JSInvokable]
Components\Resize\BrowserDimensionWatcher.cs (1)
41[JSInvokable]
ShortcutManager.cs (1)
25[JSInvokable]
BasicTestApp (63)
InteropTest\ByteArrayInterop.cs (4)
10[JSInvokable] 16[JSInvokable] 22[JSInvokable] 28[JSInvokable]
InteropTest\DotNetStreamReferenceInterop.cs (4)
10[JSInvokable] 24[JSInvokable] 30[JSInvokable] 43[JSInvokable]
InteropTest\JavaScriptInterop.cs (50)
13[JSInvokable] 16[JSInvokable] 20[JSInvokable] 27[JSInvokable] 33[JSInvokable] 39[JSInvokable] 47[JSInvokable] 56[JSInvokable] 66[JSInvokable] 77[JSInvokable] 89[JSInvokable] 102[JSInvokable] 116[JSInvokable] 122[JSInvokable] 128[JSInvokable] 136[JSInvokable] 145[JSInvokable] 155[JSInvokable] 166[JSInvokable] 177[JSInvokable] 189[JSInvokable] 203[JSInvokable] 210[JSInvokable] 217[JSInvokable] 226[JSInvokable] 236[JSInvokable] 247[JSInvokable] 259[JSInvokable] 272[JSInvokable] 286[JSInvokable] 301[JSInvokable] 307[JSInvokable] 313[JSInvokable] 321[JSInvokable] 330[JSInvokable] 340[JSInvokable] 351[JSInvokable] 362[JSInvokable] 375[JSInvokable] 389[JSInvokable] 398[JSInvokable] 408[JSInvokable] 414[JSInvokable] 420[JSInvokable] 427[JSInvokable] 441[JSInvokable] 455[JSInvokable] 470[JSInvokable] 508[JSInvokable] 516[JSInvokable]
InteropTest\JSStreamReferenceInterop.cs (2)
11[JSInvokable] 18[JSInvokable]
ServerReliability\JSInterop.cs (3)
10[JSInvokable] 16[JSInvokable] 27[JSInvokable]
Microsoft.AspNetCore.Components.Web (7)
Forms\InputFile\InputFileJsCallbacksRelay.cs (1)
23[JSInvokable]
Virtualization\VirtualizeJsInterop.cs (2)
33[JSInvokable] 39[JSInvokable]
WebRenderer.cs (4)
160[JSInvokable] 170[JSInvokable] // Linker preserves this if you call RootComponents.Add 174[JSInvokable] // Linker preserves this if you call RootComponents.Add 178[JSInvokable] // Linker preserves this if you call RootComponents.Add
Microsoft.AspNetCore.Components.WebAssembly (5)
HotReload\WebAssemblyHotReload.cs (3)
140[JSInvokable(nameof(ApplyHotReloadDelta))] 150[JSInvokable(nameof(ApplyHotReloadDeltas))] 165[JSInvokable(nameof(GetApplyUpdateCapabilities))]
Infrastructure\JSInteropMethods.cs (2)
27[JSInvokable(nameof(NotifyLocationChanged))] 36[JSInvokable(nameof(NotifyLocationChangingAsync))]
Microsoft.JSInterop.Tests (24)
Infrastructure\DotNetDispatcherTest.cs (24)
890[JSInvokable("MethodOnInternalType")] public void MyMethod() { } 898[JSInvokable("PrivateMethod")] private static void MyPrivateMethod() { } 899[JSInvokable("ProtectedMethod")] protected static void MyProtectedMethod() { } 903[JSInvokable("InvocableStaticVoid")] 909[JSInvokable("InvocableStaticNonVoid")] 913[JSInvokable("InvocableStaticNonVoidAlias1"), JSInvokable("InvocableStaticNonVoidAlias2")] 917[JSInvokable("InvocableStaticWithParams")] 933[JSInvokable(nameof(IncorrectDotNetObjectRefUsage))] 937[JSInvokable] 941[JSInvokable] 947[JSInvokable] 964[JSInvokable] 984[JSInvokable] 1003[JSInvokable] 1021[JSInvokable] 1040[JSInvokable] 1046[JSInvokable] 1056[JSInvokable] public string EchoStringParameter(string input) => input; 1057[JSInvokable] public TValue EchoParameter(TValue input) => input; 1062[JSInvokable, JSInvokable("Alias")] public string MultipleJSInvokableAttributesInstance(string input) => input; 1067[JSInvokable("StaticGenericMethod")] public static string StaticGenericMethod<TValue>(TValue input) => input.ToString(); 1068[JSInvokable("InstanceGenericMethod")] public string GenericMethod<TValue>(TValue input) => input.ToString();
Wasm.Performance.TestApp (1)
WasmMemory.cs (1)
10[JSInvokable]
13 references to JSInvokableAttribute
Microsoft.JSInterop (11)
Infrastructure\DotNetDispatcher.cs (8)
363throw new ArgumentException($"The assembly '{assemblyKey.AssemblyName}' does not contain a public invokable method with [{nameof(JSInvokableAttribute)}(\"{methodIdentifier}\")]."); 396throw new ArgumentException($"The type '{type.Name}' does not contain a public invokable method with [{nameof(JSInvokableAttribute)}(\"{methodIdentifier}\")]."); 405if (method.ContainsGenericParameters || !method.IsDefined(typeof(JSInvokableAttribute), inherit: false)) 410foreach (var attr in method.GetCustomAttributes<JSInvokableAttribute>(false)) 444if (method.ContainsGenericParameters || !method.IsDefined(typeof(JSInvokableAttribute), inherit: false)) 449foreach (var attr in method.GetCustomAttributes<JSInvokableAttribute>(false))
Infrastructure\DotNetInvocationInfo.cs (1)
33/// Gets the identifier of the method to be invoked. This is the value specified in the <see cref="JSInvokableAttribute"/>.
JSInvokableAttribute.cs (2)
24/// Constructs an instance of <see cref="JSInvokableAttribute"/> without setting 32/// Constructs an instance of <see cref="JSInvokableAttribute"/> using the specified
Microsoft.JSInterop.Tests (2)
Infrastructure\DotNetDispatcherTest.cs (2)
543Assert.Contains($"The assembly '{thisAssemblyName}' does not contain a public invokable method with [{nameof(JSInvokableAttribute)}(\"{methodIdentifier}\")].", ex.Message); 558Assert.Contains($"The type 'GenericType`1' does not contain a public invokable method with [{nameof(JSInvokableAttribute)}(\"{methodIdentifier}\")].", ex.Message);