39 references to JSCallType
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteJSRuntime.cs (1)
114CallType = JSCallType.FunctionCall,
Microsoft.AspNetCore.Components.Server.Tests (8)
ProtectedBrowserStorageTest.cs (8)
355public List<(string Identifier, object[] Args, JSCallType CallType)> Invocations { get; } = []; 361Invocations.Add((identifier, args, JSCallType.FunctionCall)); 370Invocations.Add((identifier, args, JSCallType.NewCall)); 376Invocations.Add((identifier, args, JSCallType.NewCall)); 382Invocations.Add((identifier, [], JSCallType.GetValue)); 388Invocations.Add((identifier, [], JSCallType.GetValue)); 394Invocations.Add((identifier, [value], JSCallType.SetValue)); 400Invocations.Add((identifier, [value], JSCallType.SetValue));
Microsoft.AspNetCore.Components.WebView (1)
Services\WebViewJSRuntime.cs (1)
38CallType = JSCallType.FunctionCall,
Microsoft.JSInterop (27)
Implementation\JSInProcessObjectReference.cs (4)
34return _jsRuntime.Invoke<TValue>(identifier, Id, JSCallType.FunctionCall, args); 43return _jsRuntime.Invoke<IJSInProcessObjectReference>(identifier, Id, JSCallType.NewCall, args); 52return _jsRuntime.Invoke<TValue>(identifier, Id, JSCallType.GetValue); 61_jsRuntime.Invoke<TValue>(identifier, Id, JSCallType.SetValue, value);
Implementation\JSObjectReference.cs (8)
41return _jsRuntime.InvokeAsync<TValue>(Id, identifier, JSCallType.FunctionCall, args); 49return _jsRuntime.InvokeAsync<TValue>(Id, identifier, JSCallType.FunctionCall, cancellationToken, args); 57return _jsRuntime.InvokeAsync<IJSObjectReference>(Id, identifier, JSCallType.NewCall, args); 65return _jsRuntime.InvokeAsync<IJSObjectReference>(Id, identifier, JSCallType.NewCall, cancellationToken, args); 73return _jsRuntime.InvokeAsync<TValue>(Id, identifier, JSCallType.GetValue, null); 81return _jsRuntime.InvokeAsync<TValue>(Id, identifier, JSCallType.GetValue, null); 89await _jsRuntime.InvokeAsync<TValue>(Id, identifier, JSCallType.SetValue, [value]); 97await _jsRuntime.InvokeAsync<TValue>(Id, identifier, JSCallType.SetValue, [value]);
JSInProcessRuntime.cs (5)
27=> Invoke<TValue>(identifier, WindowObjectId, JSCallType.FunctionCall, args); 32=> Invoke<IJSInProcessObjectReference>(identifier, WindowObjectId, JSCallType.NewCall, args); 37=> Invoke<TValue>(identifier, WindowObjectId, JSCallType.GetValue); 42=> Invoke<IJSVoidResult>(identifier, WindowObjectId, JSCallType.SetValue, value); 45internal TValue Invoke<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(string identifier, long targetInstanceId, JSCallType callType, params object?[]? args)
JSRuntime.cs (10)
71=> InvokeAsync<TValue>(WindowObjectId, identifier, JSCallType.FunctionCall, args); 85=> InvokeAsync<TValue>(WindowObjectId, identifier, JSCallType.FunctionCall, cancellationToken, args); 89=> InvokeAsync<IJSObjectReference>(WindowObjectId, identifier, JSCallType.NewCall, args); 93=> InvokeAsync<IJSObjectReference>(WindowObjectId, identifier, JSCallType.NewCall, cancellationToken, args); 97=> InvokeAsync<TValue>(WindowObjectId, identifier, JSCallType.GetValue, null); 101=> InvokeAsync<TValue>(WindowObjectId, identifier, JSCallType.GetValue, cancellationToken, null); 105=> await InvokeAsync<IJSVoidResult>(WindowObjectId, identifier, JSCallType.SetValue, [value]); 109=> await InvokeAsync<IJSVoidResult>(WindowObjectId, identifier, JSCallType.SetValue, cancellationToken, [value]); 111internal async ValueTask<TValue> InvokeAsync<[DynamicallyAccessedMembers(JsonSerialized)] TValue>(long targetInstanceId, string identifier, JSCallType callType, object?[]? args) 127JSCallType callType,
Microsoft.JSInterop.WebAssembly (2)
WebAssemblyJSRuntime.cs (2)
34(int)JSCallType.FunctionCall 67(int)JSCallType.FunctionCall