Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var syncData          = new SyncData();
            var configXmlProvider = new ConfigXmlProvider(syncData);
            var webHelper         = new WebHelperService();
            var configSettings    = new ConfigSettings(configXmlProvider);
            var logger            = new ErrorLoggingService(webHelper, configSettings);

            try
            {
                var trackXmlParser   = new TrackXmlParser();
                var trackXmlProvider = new TrackXmlProvider(syncData);
                var trackRepository  = new TrackRepository(trackXmlParser, trackXmlProvider);
                var cloudService     = new AzureService(syncData);
                var taggingService   = new TagLibService();

                var service = new Service(trackRepository, cloudService, logger, syncData, taggingService);

                service.Run();
            }
            catch (Exception ex)
            {
                logger.Log(ex);
            }
        }
Ejemplo n.º 2
0
 public Service(ITrackRepository repository, ICloudService cloudService, IErrorLoggingService logger, SyncData syncData, ITaggingService taggingService)
 {
     _cloudService   = cloudService;
     _logger         = logger;
     _repository     = repository;
     _syncData       = syncData;
     _taggingService = taggingService;
 }