Skip to content

Commit

Permalink
Possible fix for di error
Browse files Browse the repository at this point in the history
  • Loading branch information
archie426 committed Jul 16, 2020
1 parent 9514c8b commit b493815
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NewEssentials/Chat/BroadcastingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace NewEssentials.Chat
{
[ServiceImplementation]
[PluginServiceImplementation]
public class BroadcastingService : IBroadcastingService, IAsyncDisposable
{
public bool IsActive { get; set; }
Expand All @@ -22,10 +22,10 @@ public class BroadcastingService : IBroadcastingService, IAsyncDisposable
private readonly IOpenModPlugin m_Plugin;

//TODO: Autofac error for constructor
public BroadcastingService(IConfiguration config, IPluginAccessor<NewEssentials> plugin)
public BroadcastingService(IConfiguration config, NewEssentials plugin)
{
m_Configuration = config;
m_Plugin = plugin.Instance;
m_Plugin = plugin;
if (m_Configuration.GetValue<int>("broadcast:repeatingBroadcastInterval") > 0)
AsyncHelper.Schedule("NewEssentials::Broadcasting", async () => await Broadcast(m_Configuration.GetValue<int>("broadcast:repeatingBroadcastInterval")));
}
Expand Down

0 comments on commit b493815

Please sign in to comment.