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