示例#1
0
 public FacebookService(IFacebookBrowser facebookBrowser,
                        IMemoryCache memoryCache,
                        ILogger <FacebookService> logger
                        )
 {
     this.facebookBrowser = facebookBrowser;
     this.memoryCache     = memoryCache;
     this.logger          = logger;
 }
示例#2
0
 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);
 }