public AuthController(IConfiguration configuration, TodoBot.BotService botService, TaskContext context, RocketChatCache cache) { this.configuration = configuration; this.botService = botService; this.context = context; this.cache = cache; }
public TasksController(TaskContext context, BotService botService, IConfiguration config, ILogger <TasksController> logger, RocketChatCache cache) { this.context = context; this.botService = botService; this.logger = logger; this.cache = cache; responseUrl = config.GetSection("bots").Get <BotConfiguration[]>()[0].ResponseUrl; }
public MentionedResponse(ILogger <MentionedResponse> logger, TaskContext context, TaskParser.TaskParserService parserService, IPrivateMessenger messenger, RocketChatCache cache, string responseUrl = null) { this.logger = logger; this.context = context; this.parserService = parserService; this.messenger = messenger; this.cache = cache; ResponseUrl = responseUrl; }
public BotService(ILogger <BotService> logger, IConfiguration configuration, IServiceCollection services, RocketChatCache cache) { configuration.GetSection("bots").Bind(botConfigurations); this.logger = logger; this.cache = cache; foreach (BotConfiguration botconfig in botConfigurations) { loginOptions.Add(new LdapLoginOption { Username = botconfig.Username, Password = botconfig.Password }); // SetUp Bot bots.Add(new RcDiBot(botconfig.RocketServerUrl, botconfig.UseSsl, services, cache, logger, botconfig.ResponseUrl)); } }
public RcDiBot(IRocketChatDriver driver, RocketChatCache cache, ILogger logger, IServiceCollection services, string responseAddress = null) : base(driver, logger) { ResponseUrl = responseAddress; this.services = services; this.cache = cache; }
public RcDiBot(string url, bool useSsl, IServiceCollection services, RocketChatCache cache, ILogger logger = null, string responseAddress = null) : this(new RocketChatDriver(url, useSsl, logger), cache, logger, services, responseAddress) { }
public UsersController(TaskContext context, BotService botService, RocketChatCache cache) { this.context = context; this.botService = botService; this.cache = cache; }