- fixed remote coordinator being initialized when local one is supposed to be used

- Fixed services loading multiple times
- cleaned up service adding with scrutor
- INService moved from some interfaces to concrete implementation
This commit is contained in:
Kwoth
2021-07-02 17:11:07 +02:00
parent 9f34f8f00f
commit 873eaa290e
14 changed files with 23 additions and 41 deletions

View File

@@ -11,7 +11,7 @@ using Microsoft.Extensions.DependencyInjection;
namespace NadekoBot.Services
{
public sealed class BehaviorExecutor : IBehaviourExecutor
public sealed class BehaviorExecutor : IBehaviourExecutor, INService
{
private readonly IServiceProvider _services;
private IEnumerable<ILateExecutor> _lateExecutors;

View File

@@ -12,7 +12,7 @@ using NadekoBot.Modules.Gambling.Services;
namespace NadekoBot.Services
{
public class CurrencyService : ICurrencyService
public class CurrencyService : ICurrencyService, INService
{
private readonly DbService _db;
private readonly GamblingConfigService _gss;

View File

@@ -18,7 +18,7 @@ using Serilog;
namespace NadekoBot.Services
{
public class GoogleApiService : IGoogleApiService
public class GoogleApiService : IGoogleApiService, INService
{
private const string SearchEngineId = "018084019232060951019:hs5piey28-e";

View File

@@ -11,7 +11,7 @@ using NadekoBot.Modules.Administration;
namespace NadekoBot.Services
{
public class Localization : ILocalization
public class Localization : ILocalization, INService
{
private readonly BotConfigService _bss;
private readonly DbService _db;

View File

@@ -12,7 +12,7 @@ using Serilog;
namespace NadekoBot.Services
{
public class StatsService : IStatsService
public class StatsService : IStatsService, INService
{
private readonly DiscordSocketClient _client;
private readonly IBotCredentials _creds;