public PostcrossingEventProcessor( IPostcrossingEngineSettingsService postcrossingEngineSettingsService, IInsightsRepository insightsRepository, IEventRepository eventRepository) { _postcrossingEngineSettingsService = postcrossingEngineSettingsService; _insightsRepository = insightsRepository; _eventRepository = eventRepository; }
public PostcrossingEventService( IPostcrossingEngineSettingsService postcrossingEngineSettingsService, IPostcrossingClient postcrossingClient, IInsightsRepository insightsRepository, IEventRepository eventRepository, IPostcrossingEventProcessor postcrossingEventProcessor) { _semaphore = new SemaphoreSlim(1); _postcrossingEngineSettingsService = postcrossingEngineSettingsService; _postcrossingClient = postcrossingClient; _insightsRepository = insightsRepository; _eventRepository = eventRepository; _postcrossingEventProcessor = postcrossingEventProcessor; }
public MainWindowViewModel( ToggleButton persistToggle, ToggleButton trackingToggle, ProgressRing progressRing, Slider frequencySlider) { _persistToggle = persistToggle; _trackingToggle = trackingToggle; _progressRing = progressRing; _frequencySlider = frequencySlider; _persistToggle.Click += OnPersistToggleClick; _trackingToggle.Click += OnTrackingToggleClick; _postcrossingEngineSettingsService = App.ServiceProvider.GetService <IPostcrossingEngineSettingsService>(); _postcrossingEventService = App.ServiceProvider.GetService <IPostcrossingEventService>(); _semaphore = new SemaphoreSlim(1); }