mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Ipc is not working with a Blazor Server project #551
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aksoftware98 on GitHub (Aug 15, 2020).
Originally assigned to: @GregorBiswanger on GitHub.
Currently using the latest version of Electron.NET with Blazor Server & .NET Core 3.1
And building the project for Windows
I have multiple razor pages but I cannot have the communicate works between them via Ipc
Steps to Reproduce:
Created a razor page and with button and having a handler so when I click the button I send the following message like that
var window = Elelctron.WindowManager.BrowserWindows.FirstOrDefault();Electron.IpcMain.Send(window, "message", "Hello");In another razor page I'm calling the on Method to listen to the 'message' channel and respond by showing an alert
But when I click the button nothing is happening
Thanks
@Xarkam commented on GitHub (Sep 2, 2020):
I understand better why my code is not working:
Inside my blazor page.
@GregorBiswanger commented on GitHub (Oct 25, 2020):
With Blazor server-side, IPC communication should not be necessary.
On the server side, client + server merge.
Could i help?
@Gaulomatic commented on GitHub (Oct 25, 2020):
@GregorBiswanger That's correct, but the buggy IPC leads to the app not being able to close itself gracefully.
@GregorBiswanger commented on GitHub (Oct 25, 2020):
i am currently working on improving communication.
@Gaulomatic commented on GitHub (Oct 25, 2020):
That's great news, thank you.