Ejemplo n.º 1
0
 public SyncService(Settings config, IPelotonService pelotonService, IGarminUploader garminUploader, IEnumerable <IConverter> converters, ISyncStatusDb dbClient, IFileHandling fileHandler)
 {
     _config         = config;
     _pelotonService = pelotonService;
     _garminUploader = garminUploader;
     _converters     = converters;
     _db             = dbClient;
     _fileHandler    = fileHandler;
 }
    public BackgroundSyncJob(ISettingsService settingsService, ISyncStatusDb syncStatusDb, ISyncService syncService)
    {
        _settingsService = settingsService;
        _syncStatusDb    = syncStatusDb;

        _previousPollingState = null;
        _syncService          = syncService;

        _config = new Settings();
    }
 public SyncController(Settings appConfiguration, ISyncService syncService, ISyncStatusDb db)
 {
     _config      = appConfiguration;
     _syncService = syncService;
     _db          = db;
 }