mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
Expose Electron.NET IPC bridge as dependency services #469
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 @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.
@danielmeza commented on GitHub (Mar 31, 2020):
We can create also an abstraction.
@GregorBiswanger commented on GitHub (Apr 17, 2020):
That's a good idea! I'll go through that.
@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.
@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.
@GregorBiswanger commented on GitHub (May 1, 2020):
You can already register the Electron class with Services ... that should work ...