Expose Electron.NET IPC bridge as dependency services #469

Closed
opened 2026-01-29 16:40:28 +00:00 by claunia · 5 comments
Owner

Originally created by @danielmeza on GitHub (Mar 31, 2020).

Originally assigned to: @GregorBiswanger on GitHub.

Expose Electron.NET IPC bridge as dependency services so that they can be injected in the controller instead of access it statically.

Originally created by @danielmeza on GitHub (Mar 31, 2020). Originally assigned to: @GregorBiswanger on GitHub. Expose Electron.NET IPC bridge as dependency services so that they can be injected in the controller instead of access it statically.
claunia added the Feature label 2026-01-29 16:40:28 +00:00
Author
Owner

@danielmeza commented on GitHub (Mar 31, 2020):

We can create also an abstraction.

@danielmeza commented on GitHub (Mar 31, 2020): We can create also an abstraction.
Author
Owner

@GregorBiswanger commented on GitHub (Apr 17, 2020):

That's a good idea! I'll go through that.

@GregorBiswanger commented on GitHub (Apr 17, 2020): That's a good idea! I'll go through that.
Author
Owner

@GregorBiswanger commented on GitHub (Apr 21, 2020):

Okay, in principle the current solution is easier. You don't need an injection. You can easily access the static functions. I would see no advantage behind it. Alternatively, you could write your own service as a facade.

@GregorBiswanger commented on GitHub (Apr 21, 2020): Okay, in principle the current solution is easier. You don't need an injection. You can easily access the static functions. I would see no advantage behind it. Alternatively, you could write your own service as a facade.
Author
Owner

@danielmeza commented on GitHub (Apr 30, 2020):

Th utility of this is to unit test because we can remplace all parts, If we can provide this as services then we only need to do the fakes! and not the entire facade.

@danielmeza commented on GitHub (Apr 30, 2020): Th utility of this is to unit test because we can remplace all parts, If we can provide this as services then we only need to do the fakes! and not the entire facade.
Author
Owner

@GregorBiswanger commented on GitHub (May 1, 2020):

You can already register the Electron class with Services ... that should work ...

@GregorBiswanger commented on GitHub (May 1, 2020): You can already register the Electron class with Services ... that should work ...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#469