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