Example #1
0
 public ContextSwitchAnalyzer(
     IEnumerable <IContextAnalyzer> contextAnalyzers,
     IPerChatCache perChatCache)
 {
     _contextAnalyzers = contextAnalyzers ?? throw new System.ArgumentNullException(nameof(contextAnalyzers));
     _perChatCache     = perChatCache ?? throw new System.ArgumentNullException(nameof(perChatCache));
 }
Example #2
0
 public WebhookController(
     Morgobot.Brain.Brain brain,
     TelegramBotClient client,
     ILogger <WebhookController> logger,
     IPerChatCache perChatCache)
 {
     _brain        = brain ?? throw new ArgumentNullException(nameof(brain));
     _client       = client ?? throw new ArgumentNullException(nameof(client));
     _logger       = logger ?? throw new ArgumentNullException(nameof(logger));
     _perChatCache = perChatCache ?? throw new ArgumentNullException(nameof(perChatCache));
 }
Example #3
0
 public SecretSantaAnalyzer(IPerChatCache perChatCache)
 {
     _perChatCache = perChatCache ?? throw new System.ArgumentNullException(nameof(perChatCache));
 }