16 references to JSCallResultType
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteJSRuntime.cs (1)
107
protected override void BeginInvokeJS(long asyncHandle, string identifier, string argsJson,
JSCallResultType
resultType, long targetInstanceId)
Microsoft.AspNetCore.Components.Web (2)
Internal\IInternalWebJSInProcessRuntime.cs (1)
20
string InvokeJS(string identifier, [StringSyntax(StringSyntaxAttribute.Json)] string? argsJson,
JSCallResultType
resultType, long targetInstanceId);
WebRenderer.cs (1)
133
inProcessRuntime.InvokeJS(JSMethodIdentifier, argsJson,
JSCallResultType
.JSVoidResult, 0);
Microsoft.JSInterop (13)
Infrastructure\JSInvocationInfo.cs (1)
38
public required
JSCallResultType
ResultType { get; init; }
JSInProcessRuntime.cs (3)
48
var
resultType = JSCallResultTypeHelper.FromGeneric<TValue>();
81
=> InvokeJS(identifier, argsJson,
JSCallResultType
.Default, WindowObjectId);
92
protected abstract string? InvokeJS(string identifier, [StringSyntax(StringSyntaxAttribute.Json)] string? argsJson,
JSCallResultType
resultType, long targetInstanceId);
JSRuntime.cs (3)
154
var
resultType = JSCallResultTypeHelper.FromGeneric<TValue>();
192
=> BeginInvokeJS(taskId, identifier, argsJson,
JSCallResultType
.Default, WindowObjectId);
203
protected abstract void BeginInvokeJS(long taskId, string identifier, [StringSyntax(StringSyntaxAttribute.Json)] string? argsJson,
JSCallResultType
resultType, long targetInstanceId);
src\aspnetcore\src\Shared\JSInterop\JSCallResultTypeHelper.cs (6)
12
private static readonly Assembly _currentAssembly = typeof(
JSCallResultType
).Assembly;
14
public static
JSCallResultType
FromGeneric<TResult>()
21
return
JSCallResultType
.JSObjectReference;
25
return
JSCallResultType
.JSStreamReference;
29
return
JSCallResultType
.JSVoidResult;
33
return
JSCallResultType
.Default;