Refactor: Introduce IFacade interface for SocketIO and SignalR facades

- Create IFacade interface defining common API for SocketIO and SignalR
- Update SocketIoFacade to implement IFacade
- Update SignalRFacade to implement IFacade (add Connect no-op)
- Update RuntimeControllerBase.Socket to return IFacade
- Update RuntimeControllerAspNetBase.Socket to return IFacade
- Update RuntimeControllerDotNetFirst.Socket to return IFacade
- Update ElectronNetRuntime.GetSocket() to return IFacade
- Update BridgeConnector.Socket to return IFacade

This enables polymorphic usage of both facades throughout the codebase
and prepares for full Electron API integration with SignalR mode.
This commit is contained in:
Pierre Arnaud
2026-01-30 13:03:19 +01:00
parent c4a8de6c4e
commit be609a513e
9 changed files with 94 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
namespace ElectronNET.Runtime.Controllers
{
using ElectronNET.API;
using ElectronNET.API.Bridge;
using ElectronNET.Common;
using ElectronNET.Runtime.Data;
using ElectronNET.Runtime.Helpers;
@@ -19,7 +20,7 @@
{
}
internal override SocketIoFacade Socket
internal override IFacade Socket
{
get
{