1 instantiation of JSProxyContext
System.Runtime.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (1)
80public static readonly JSProxyContext MainThreadContext = new();
56 references to JSProxyContext
System.Runtime.InteropServices.JavaScript (56)
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 (3)
297var targetContext = JSProxyContext.MainThreadContext; 457internal static unsafe void ResolveOrRejectPromise(JSProxyContext targetContext, Span<JSMarshalerArgument> arguments)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.CoreCLR.cs (2)
42var ctx = JSProxyContext.CurrentThreadContext;
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 (6)
80public static readonly JSProxyContext MainThreadContext = new(); 81public static JSProxyContext CurrentThreadContext => MainThreadContext; 82public static JSProxyContext CurrentOperationContext => MainThreadContext; 83public static JSProxyContext PushOperationWithCurrentThreadContext() 246public static JSProxyContext AssertIsInteropThread() 479var 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 _)