JSReference.SynchronizationContext property
Gets the synchronization context that must be used to access the referenced value.
C#
public JSSynchronizationContext? SynchronizationContext { get; }
Remarks
Use the Run
method to wrap code that accesses the referenced value, if there is a possibility that the current execution context is not already on the correct thread.
See Also
- class JSSynchronizationContext
- class JSReference
- namespace Microsoft.JavaScript.NodeApi