mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-16 13:45:07 +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:
3
ElectronNET.API/HostHook.cs
Normal file → Executable file
3
ElectronNET.API/HostHook.cs
Normal file → Executable file
@@ -3,6 +3,7 @@ using Newtonsoft.Json.Linq;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using ElectronNET.API.Interfaces;
|
||||
|
||||
namespace ElectronNET.API
|
||||
{
|
||||
@@ -13,7 +14,7 @@ namespace ElectronNET.API
|
||||
/// ElectronHostHook directory:
|
||||
/// <c>electronize add HostHook</c>
|
||||
/// </summary>
|
||||
public sealed class HostHook
|
||||
public sealed class HostHook : IHostHook
|
||||
{
|
||||
private static HostHook _electronHostHook;
|
||||
private static object _syncRoot = new object();
|
||||
|
||||
Reference in New Issue
Block a user