1 instantiation of JSProxyContext
System.Runtime.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (1)
80
public static readonly JSProxyContext MainThreadContext =
new
();
56 references to JSProxyContext
System.Runtime.InteropServices.JavaScript (56)
System\Runtime\InteropServices\JavaScript\Interop\JavaScriptExports.CoreCLR.cs (3)
29
var
ctx = argException.ToManagedContext;
80
var
ctx = argException.ToManagedContext;
153
var
ctx = argException.AssertCurrentThreadContext();
System\Runtime\InteropServices\JavaScript\JSFunctionBinding.cs (3)
297
var
targetContext =
JSProxyContext
.MainThreadContext;
457
internal static unsafe void ResolveOrRejectPromise(
JSProxyContext
targetContext, Span<JSMarshalerArgument> arguments)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.CoreCLR.cs (2)
42
var
ctx =
JSProxyContext
.CurrentThreadContext;
System\Runtime\InteropServices\JavaScript\JSHostImplementation.Types.cs (3)
18
public
JSProxyContext
ProxyContext;
24
public PromiseHolder(
JSProxyContext
targetContext)
34
public PromiseHolder(
JSProxyContext
targetContext, nint gcvHandle)
System\Runtime\InteropServices\JavaScript\JSMarshalerArgument.cs (6)
106
internal
JSProxyContext
ToManagedContext
112
return
JSProxyContext
.MainThreadContext;
135
internal
JSProxyContext
ToJSContext
141
return
JSProxyContext
.MainThreadContext;
163
internal
JSProxyContext
AssertCurrentThreadContext()
167
return
JSProxyContext
.MainThreadContext;
System\Runtime\InteropServices\JavaScript\JSObject.References.cs (3)
14
internal
JSProxyContext
ProxyContext;
30
internal JSObject(IntPtr jsHandle,
JSProxyContext
ctx)
62
JSProxyContext
.ReleaseCSOwnedObject(this, skipJsCleanup);
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (6)
80
public static readonly
JSProxyContext
MainThreadContext = new();
81
public static
JSProxyContext
CurrentThreadContext => MainThreadContext;
82
public static
JSProxyContext
CurrentOperationContext => MainThreadContext;
83
public static
JSProxyContext
PushOperationWithCurrentThreadContext()
246
public static
JSProxyContext
AssertIsInteropThread()
479
var
ctx = jso.ProxyContext;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Byte.cs (1)
144
var
ctx = ToJSContext;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Double.cs (1)
150
var
ctx = ToJSContext;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Exception.cs (2)
38
var
ctx = ToManagedContext;
97
var
ctx = ToJSContext;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Func.cs (16)
173
var
ctx = ToManagedContext;
193
var
ctx = ToManagedContext;
215
var
ctx = ToManagedContext;
239
var
ctx = ToManagedContext;
429
var
ctx = ToManagedContext;
451
var
ctx = ToManagedContext;
476
var
ctx = ToManagedContext;
501
var
ctx = ToManagedContext;
521
var
ctx = ToJSContext;
543
var
ctx = ToJSContext;
569
var
ctx = ToJSContext;
599
var
ctx = ToJSContext;
621
var
ctx = ToJSContext;
647
var
ctx = ToJSContext;
677
var
ctx = ToJSContext;
711
var
ctx = ToJSContext;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Int32.cs (1)
143
var
ctx = ToJSContext;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.JSObject.cs (1)
25
var
ctx = ToManagedContext;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Object.cs (1)
339
var
ctx = ToJSContext;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Single.cs (1)
150
var
ctx = ToJSContext;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Task.cs (6)
49
var
ctx = ToManagedContext;
109
var
ctx = ToManagedContext;
162
var
ctx = ToJSContext;
258
var
ctx = ToJSContext;
334
var
ctx = ToJSContext;
434
private bool CanMarshalTaskResultOnSameCall(
JSProxyContext
_)