Skip to content

Commit

Permalink
fix(plugins/telegramplugin/telegramplugin.cs): build error
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyungent committed Aug 12, 2023
1 parent 559d287 commit a442939
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/TelegramPlugin/TelegramPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ public class TelegramPlugin : BasePlugin, ITimeJobPlugin
/// </summary>
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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a442939

Please sign in to comment.