JSInterface.DynamicInvoke method (1 of 2)
Dynamically invokes an interface method JS adapter delegate after obtaining the JS this
value from the reference. Automatically switches to the JS thread if needed.
C#
protected object? DynamicInvoke(Delegate interfaceMethod, object?[] args)
parameter | description |
---|---|
interfaceMethod | Interface method JS adapter delegate. |
args | Array of method arguments starting at index 1. Index 0 is reserved for the JS this value. |
Remarks
This method is used by the dynamically-emitted interface marshalling code.
See Also
- class JSInterface
- namespace Microsoft.JavaScript.NodeApi.Interop
JSInterface.DynamicInvoke method (2 of 2)
Dynamically invokes an interface method JS adapter delegate after obtaining the JS this
value from the reference. Automatically switches to the JS thread if needed.
C#
protected object? DynamicInvoke(MethodInfo interfaceMethod,
Func<MethodInfo, Delegate> delegateProvider, object?[] args)
parameter | description |
---|---|
interfaceMethod | Interface method to invoke. |
delegateProvider | Callback function that returns a JS adapter delegate for the interface method. The callback runs on the JS thread. |
args | Array of method arguments starting at index 1. Index 0 is reserved for the JS this value. |
Remarks
This method is used by the dynamically-emitted interface marshalling code.
See Also
- class JSInterface
- namespace Microsoft.JavaScript.NodeApi.Interop