public VictorOpsApiController( ILogger <VictorOpsApiController> logger, IVictorOpsConfiguration configuration, ITeamsApi teamsApi) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _teamsApi = teamsApi ?? throw new ArgumentNullException(nameof(teamsApi)); }
public TeamService( ILogger <TeamService> logger, IVictorOpsConfiguration configuration, ITeamsApi teamsApi ) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _teamsApi = teamsApi ?? throw new ArgumentNullException(nameof(teamsApi)); }
public void Init() { instance = RestService.For <ITeamsApi>(hostUrl); }