public FacebookService(IFacebookBrowser facebookBrowser, IMemoryCache memoryCache, ILogger <FacebookService> logger ) { this.facebookBrowser = facebookBrowser; this.memoryCache = memoryCache; this.logger = logger; }
public Bot(ILogger <Bot> logger, IDiscordClient discordClient, IFacebookService facebookService, BotSettings botSettings, IDiscordChannelCommandHandler discordChannelCommandHandler, IHostApplicationLifetime applicationLifetime, IFacebookBrowser facebookBrowser) { this.logger = logger; this.discordClient = discordClient; this.facebookService = facebookService; this.botSettings = botSettings; this.discordChannelCommandHandler = discordChannelCommandHandler; this.applicationLifetime = applicationLifetime; this.facebookBrowser = facebookBrowser; this.applicationLifetime.ApplicationStopped.Register(OnApplicationStopped); }