Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Ability to execute electron code from within C# app #35

Open
ghost opened this issue Apr 13, 2017 · 0 comments
Open

Ability to execute electron code from within C# app #35

ghost opened this issue Apr 13, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 13, 2017

I am attempting to launch an Electron app from within a C# app. The reason for this is that we have two applications, with a lot of code. The first is the "controlling" application, written in C# and the second is the "rendering" application which is written in Electron.

Is this supported? I can't find any examples, and i'm not seeing references to electron in the code, so i'm guessing it is not supported.

By the way, I suppose I should also mention that I wrote a small test app that attempts to launch the electron sample app (https://github.com/electron/electron-quick-start) via a test C# app, which was unsuccessful.

Here is the test C# idea:

        var func = Edge.Func(@"
          var electron = require('electron');
          return function (data, cb) {
            var init = !!electron.app;
            if (!init) console.log('Could not initialize electron app!');
            cb(null, init);
          };
        ");

        dynamic init = await func(null);
        Console.WriteLine("Initialized Electron: " + init);

The code runs fine. It's just not able to initialize the electron.app.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants