Ejemplo n.º 1
0
 public AuthController(IConfiguration configuration, TodoBot.BotService botService, TaskContext context, RocketChatCache cache)
 {
     this.configuration = configuration;
     this.botService    = botService;
     this.context       = context;
     this.cache         = cache;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
        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));
            }
        }
Ejemplo n.º 5
0
 public RcDiBot(IRocketChatDriver driver, RocketChatCache cache, ILogger logger, IServiceCollection services, string responseAddress = null) : base(driver, logger)
 {
     ResponseUrl   = responseAddress;
     this.services = services;
     this.cache    = cache;
 }
Ejemplo n.º 6
0
 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)
 {
 }
Ejemplo n.º 7
0
 public UsersController(TaskContext context, BotService botService, RocketChatCache cache)
 {
     this.context    = context;
     this.botService = botService;
     this.cache      = cache;
 }