Share via


NodeInvocationInfo Class

Definition

Caution

Use Microsoft.AspNetCore.SpaServices.Extensions

Describes an RPC call sent from .NET code to Node.js code.

public ref class NodeInvocationInfo
public class NodeInvocationInfo
[System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")]
public class NodeInvocationInfo
type NodeInvocationInfo = class
[<System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")>]
type NodeInvocationInfo = class
Public Class NodeInvocationInfo
Inheritance
NodeInvocationInfo
Attributes

Constructors

NodeInvocationInfo()

Properties

Args

A sequence of JSON-serializable arguments to be passed to the Node.js function being invoked.

ExportedFunctionName

If set, specifies the name of CommonJS function export to be invoked. If not set, the Node.js module's default export must itself be a function to be invoked.

ModuleName

Specifies the path to the Node.js module (i.e., .js file) relative to the project root.

Applies to