From edd0add76d523a31b7a60037974c0c205b352eb9 Mon Sep 17 00:00:00 2001 From: Erik Zhang Date: Wed, 18 Nov 2020 23:17:19 +0800 Subject: [PATCH] Add services to plugin system (#679) --- neo-cli/CLI/MainService.cs | 2 ++ neo-cli/neo-cli.csproj | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/neo-cli/CLI/MainService.cs b/neo-cli/CLI/MainService.cs index 727ac1f10..712367078 100644 --- a/neo-cli/CLI/MainService.cs +++ b/neo-cli/CLI/MainService.cs @@ -341,6 +341,8 @@ public async void Start(string[] args) break; } + Plugin.AddService(this); + _ = new Logger(); NeoSystem = new NeoSystem(Settings.Default.Storage.Engine); diff --git a/neo-cli/neo-cli.csproj b/neo-cli/neo-cli.csproj index 94e3b3363..b269d72e6 100644 --- a/neo-cli/neo-cli.csproj +++ b/neo-cli/neo-cli.csproj @@ -28,7 +28,7 @@ - +