Exemplo n.º 1
0
 public SpogoCsvExportComponent(IProfilingLogger logger, ITeamDataSource teamDataSource, IContactDetailsParser contactDetailsParser)
 {
     _logger               = logger ?? throw new ArgumentNullException(nameof(logger));
     _teamDataSource       = teamDataSource ?? throw new ArgumentNullException(nameof(teamDataSource));
     _contactDetailsParser = contactDetailsParser ?? throw new ArgumentNullException(nameof(contactDetailsParser));
     _taskRunner           = new BackgroundTaskRunner <IBackgroundTask>(nameof(SpogoCsvExportTask), _logger);
 }
 public SpogoCsvExportTask(IBackgroundTaskRunner <RecurringTaskBase> runner, int delayBeforeWeStart, int howOftenWeRepeat, IProfilingLogger logger, ITeamDataSource teamDataSource,
                           IContactDetailsParser contactDetailsParser)
     : base(runner, delayBeforeWeStart, howOftenWeRepeat)
 {
     _logger               = logger ?? throw new System.ArgumentNullException(nameof(logger));
     _teamDataSource       = teamDataSource ?? throw new System.ArgumentNullException(nameof(teamDataSource));
     _contactDetailsParser = contactDetailsParser ?? throw new System.ArgumentNullException(nameof(contactDetailsParser));
 }