public ClipService(IClipRepository clipRepository, ICutRepository cutRepository, ICampaignRepository campaignRepository) { this._clipRepository = clipRepository; this._cutRepository = cutRepository; this._campaignRepository = campaignRepository; }
/// <summary> /// The constructor for the history MenuItem /// </summary> /// <param name="dopyContextMenuTranslations"></param> /// <param name="clipRepository">IClipRepository to perform actions on</param> public DeleteMenuItem(IDopyTranslations dopyContextMenuTranslations, IClipRepository clipRepository) { _clipRepository = clipRepository; // automatically update the DisplayName dopyContextMenuTranslations.CreateDisplayNameBinding(this, nameof(IDopyTranslations.Delete)); Id = "B_Delete"; Icon = new PackIconMaterial { Kind = PackIconMaterialKind.Delete }; }
/// <summary> /// Initializes the needed dependencies /// </summary> /// <param name="clipRepository">IClipRepository</param> /// <param name="sessionRepository">ISessionRepository</param> /// <param name="dopyConfiguration">Configuration</param> /// <param name="uiSynchronizationContext">SynchronizationContext to register the Clipboard Monitor with</param> public ClipboardStoreService( IClipRepository clipRepository, ISessionRepository sessionRepository, IDopyConfiguration dopyConfiguration, [KeyFilter("ui")] SynchronizationContext uiSynchronizationContext) { _clipRepository = clipRepository; _uiSynchronizationContext = uiSynchronizationContext ?? throw new ArgumentNullException(nameof(uiSynchronizationContext)); _dopyConfiguration = dopyConfiguration; var currentSession = CreateSession(); _currentSession = sessionRepository.Find(session => session.SessionSid == currentSession.SessionSid).FirstOrDefault(); if (_currentSession != null) { return; } sessionRepository.Create(currentSession); _currentSession = currentSession; }
public ClipController(IClipRepository clipRepository, IGenreClipsRepository genreClipsRepositor) { this.clipRepository = clipRepository; this.genreClipsRepository = genreClipsRepositor; }
/// <summary> /// Constructor for the dependencies /// </summary> /// <param name="clipRepository"></param> public ShareServer(IClipRepository clipRepository) { _clipRepository = clipRepository; }
/// <summary> /// The importing constructor /// </summary> /// <param name="eventAggregator">IEventAggregator</param> /// <param name="clipRepository">IClipRepository</param> public OpenUriService(IEventAggregator eventAggregator, IClipRepository clipRepository) { _clipRepository = clipRepository; _eventAggregator = eventAggregator; }
/// <summary> /// The importing constructor /// </summary> /// <param name="eventAggregator">IEventAggregator</param> /// <param name="clipRepository">IClipRepository</param> public StacktraceMonitorService(IEventAggregator eventAggregator, IClipRepository clipRepository) { _clipRepository = clipRepository; _eventAggregator = eventAggregator; }
public ClipPlayer(IClipRepository repo) { retrieving clipRepo = repo; player = new SoundPlayer(); }