public ContextSwitchAnalyzer( IEnumerable <IContextAnalyzer> contextAnalyzers, IPerChatCache perChatCache) { _contextAnalyzers = contextAnalyzers ?? throw new System.ArgumentNullException(nameof(contextAnalyzers)); _perChatCache = perChatCache ?? throw new System.ArgumentNullException(nameof(perChatCache)); }
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)); }
public SecretSantaAnalyzer(IPerChatCache perChatCache) { _perChatCache = perChatCache ?? throw new System.ArgumentNullException(nameof(perChatCache)); }