mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-17 02:35:00 +03:00
Refactor CoreHandler
This commit is contained in:
@@ -8,12 +8,14 @@ namespace ServiceLib.Handler
|
||||
/// </summary>
|
||||
public class CoreHandler
|
||||
{
|
||||
private static readonly Lazy<CoreHandler> _instance = new(() => new());
|
||||
public static CoreHandler Instance => _instance.Value;
|
||||
private Config _config;
|
||||
private Process? _process;
|
||||
private Process? _processPre;
|
||||
private Action<bool, string> _updateFunc;
|
||||
|
||||
public CoreHandler(Config config, Action<bool, string> update)
|
||||
public void Init(Config config, Action<bool, string> update)
|
||||
{
|
||||
_config = config;
|
||||
_updateFunc = update;
|
||||
|
||||
Reference in New Issue
Block a user