From a442939c138ae848db162841420720ce6a3c2c69 Mon Sep 17 00:00:00 2001 From: yiyun Date: Sat, 12 Aug 2023 21:42:34 +0800 Subject: [PATCH] fix(plugins/telegramplugin/telegramplugin.cs): build error --- plugins/TelegramPlugin/TelegramPlugin.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/TelegramPlugin/TelegramPlugin.cs b/plugins/TelegramPlugin/TelegramPlugin.cs index 8981378a8..348c00937 100644 --- a/plugins/TelegramPlugin/TelegramPlugin.cs +++ b/plugins/TelegramPlugin/TelegramPlugin.cs @@ -21,16 +21,16 @@ public class TelegramPlugin : BasePlugin, ITimeJobPlugin /// public long SecondsPeriod => 60; - private readonly IPluginFinder _pluginFinder; + private readonly IServiceProvider _serviceProvider; private readonly bool _debug; #endregion #region Ctor - public TelegramPlugin(IPluginFinder pluginFinder) + public TelegramPlugin(IServiceProvider serviceProvider) { - _pluginFinder = pluginFinder; + _serviceProvider = serviceProvider; } #endregion @@ -61,7 +61,7 @@ public async Task ExecuteAsync() { try { - var homeController = new Controllers.HomeController(_pluginFinder); + var homeController = new Controllers.HomeController(_serviceProvider); await homeController.Start(); } catch (Exception ex)