Skip to content

InvokeExportAsync? #195

@PrestigeDevop

Description

@PrestigeDevop

Hi , it seems InvokeExportAsync method is not available .

I want to pass objects from js to c# .

any idea how to do that ?

maybe something like :

// JS exports objects , objects should be generic

 var exports = new object[] { 0, 1, 2 }.ToList<object>;
  static List<T> CreateList<T>(params T[] elements)
 {
     return new List<T>(elements);
 }
 var list = CreateList(0,1, 2);
 Console.WriteLine($"{list.Count} elements")
var exports = await nodeServices.InvokeExportAsync<object[]> ("./exporter.js",something, params object[] args);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions