Example #1
0
 public StatusController(IOptions <TestAppConfig> testAppOptions,
                         IOptions <SlackWebApiConfig> slackWebApiOptions,
                         IAppInstallRepository appInstallRepo,
                         IDndService dndService,
                         IUsersService usersService)
 {
     _testAppConfig     = testAppOptions.Value;
     _slackWebApiConfig = slackWebApiOptions.Value;
     _appInstallRepo    = appInstallRepo;
     _dndService        = dndService;
     _usersService      = usersService;
 }
Example #2
0
 public AuthorizationService(IAppInstallRepository installRepo,
                             IOptions <TestAppConfig> testAppOptions,
                             IOptions <SlackWebApiConfig> slackWebApiOptions)
 {
     _installRepo       = installRepo;
     _testAppConfig     = testAppOptions.Value;
     _slackWebApiConfig = slackWebApiOptions.Value;
     _httpClient        = new HttpClient
     {
         BaseAddress = new Uri(_slackWebApiConfig.BaseAddress)
     };
 }