mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-14 13:44:47 +00:00
Convert main static references off of Electron into interface implementation and expose the underlying Socket for low level interaction.
This commit is contained in:
15
ElectronNET.API/Interfaces/IApplicationSocket.cs
Executable file
15
ElectronNET.API/Interfaces/IApplicationSocket.cs
Executable file
@@ -0,0 +1,15 @@
|
||||
using Quobject.SocketIoClientDotNet.Client;
|
||||
|
||||
namespace ElectronNET.API.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Wrapper for the underlying Socket connection
|
||||
/// </summary>
|
||||
public interface IApplicationSocket
|
||||
{
|
||||
/// <summary>
|
||||
/// Socket used to communicate with main.js
|
||||
/// </summary>
|
||||
Socket Socket { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user