Example #1
0
 public HomeController(IOptions <AppSettings> appSettings, ISessionRepository sessionRepository, IHttpClientRepository clients)
 {
     this.appSettings       = appSettings.Value;
     this.sessionRepository = sessionRepository;
     this.clients           = clients;
     token = string.Empty;
 }
        public StockInformationRepository(IHttpClientRepository httpClientRepository)
        {
            _httpClientRepository = httpClientRepository;

            ApiKey     = ConfigurationManager.AppSettings["ApiKey"];
            BaseApiUrl = ConfigurationManager.AppSettings["BaseApiUrl"] + $"&apikey={ApiKey}";
        }
Example #3
0
        public IndexModel(IOptions <AppSettings> appSettings, ISessionRepository sessionRepository, IHttpClientRepository clients)
        {
            token = string.Empty;

            this.appSettings       = appSettings.Value;
            this.sessionRepository = sessionRepository;
            this.clients           = clients;
            token = string.Empty;
        }
 public OAuthController(IHttpClientRepository httpClientRepository, IStringConstantRepository stringConstant, ISlackUserRepository slackUserRepository, ILogger logger, IRepository <SlackChannelDetails> slackChannelDetails, IOAuthLoginRepository oAuthLoginRepository)
 {
     _httpClientRepository = httpClientRepository;
     _logger               = logger;
     _stringConstant       = stringConstant;
     _slackChannelDetails  = slackChannelDetails;
     _oAuthLoginRepository = oAuthLoginRepository;
     _slackUserRepository  = slackUserRepository;
 }
 public Client(IProjectUserCallRepository projectUser, IStringConstantRepository stringConstant, IEmailService email, IAttachmentRepository attachmentRepository, IHttpClientRepository httpClientRepository, IEnvironmentVariableRepository envVariableRepository)
 {
     _chatUpdateMessage             = new HttpClient();
     _chatUpdateMessage.BaseAddress = new Uri(_stringConstant.SlackChatUpdateUrl);
     _projectUser           = projectUser;
     _email                 = email;
     _stringConstant        = stringConstant;
     _attachmentRepository  = attachmentRepository;
     _httpClientRepository  = httpClientRepository;
     _envVariableRepository = envVariableRepository;
 }
Example #6
0
 public OAuthLoginRepository(ApplicationUserManager userManager,
                             IHttpClientRepository httpClientRepository, IRepository <SlackUserDetails> slackUserDetails,
                             IRepository <SlackChannelDetails> slackChannelDetails, IStringConstantRepository stringConstant,
                             ISlackUserRepository slackUserRepository, IEnvironmentVariableRepository envVariableRepository)
 {
     _userManager           = userManager;
     _httpClientRepository  = httpClientRepository;
     _slackUserDetails      = slackUserDetails;
     _stringConstant        = stringConstant;
     _slackUserRepository   = slackUserRepository;
     _slackChannelDetails   = slackChannelDetails;
     _envVariableRepository = envVariableRepository;
 }
Example #7
0
 public ScrumBotRepository(IRepository <ScrumAnswer> scrumAnswerRepository, IProjectUserCallRepository projectUser,
                           IRepository <Scrum> scrumRepository, IAttachmentRepository attachmentRepository, IRepository <Question> questionRepository,
                           IHttpClientRepository httpClientRepository, IRepository <ApplicationUser> applicationUser,
                           ISlackChannelRepository slackChannelRepository, ISlackUserRepository slackUserDetails, IStringConstantRepository stringConstant,
                           IRepository <SlackBotUserDetail> slackBotUserDetail)
 {
     _scrumAnswerRepository  = scrumAnswerRepository;
     _scrumRepository        = scrumRepository;
     _questionRepository     = questionRepository;
     _projectUser            = projectUser;
     _slackChannelRepository = slackChannelRepository;
     _applicationUser        = applicationUser;
     _attachmentRepository   = attachmentRepository;
     _httpClientRepository   = httpClientRepository;
     _slackUserDetails       = slackUserDetails;
     _slackBotUserDetail     = slackBotUserDetail;
     _stringConstant         = stringConstant;
 }
 public ProjectUserCallRepository(IHttpClientRepository httpClientRepository, IStringConstantRepository stringConstant)
 {
     _httpClientRepository = httpClientRepository;
     _stringConstant       = stringConstant;
 }
 public BackgroundProcessor(ISessionRepository sessionRepository, IHubContext <NotifyHub> notifyHub, IHttpClientRepository clients)
 {
     this.sessionRepository = sessionRepository;
     this.notifyHub         = notifyHub;
     this.clients           = clients;
 }
Example #10
0
 public GetTransactionProcessor(ISessionRepository sessionRepository, IHttpClientRepository clients, INotificationRepository notifications)
 {
     this.sessionRepository = sessionRepository;
     this.clients           = clients;
     this.notifications     = notifications;
 }
Example #11
0
 public GetTransactionProcessor(ISessionRepository sessionRepository, IHubContext <NotifyHub> notifyHub, IHttpClientRepository clients)
 {
     this.sessionRepository = sessionRepository;
     this.notifyHub         = notifyHub;
     this.clients           = clients;
 }
Example #12
0
 public BackgroundProcessor(ISessionRepository sessionRepository, IHttpClientRepository clients)
 {
     this.sessionRepository = sessionRepository;
     this.clients           = clients;
 }