Implement HostHook logic to CLI and API. Implement an example in the Web-App.

This commit is contained in:
Gregor Biswanger
2019-05-15 23:56:53 +02:00
parent f709f65f9e
commit d0c52a1364
35 changed files with 651 additions and 4595 deletions

View File

@@ -23,10 +23,6 @@ namespace ElectronNET.WebApp.Controllers
string[] files = await Electron.Dialog.ShowOpenDialogAsync(mainWindow, options);
Electron.IpcMain.Send(mainWindow, "select-directory-reply", files);
var result = await Electron.HostHook.CallAsync<string>("create-excel", files);
await Electron.Dialog.ShowMessageBoxAsync(result);
});
Electron.IpcMain.On("error-dialog", (args) =>