public GitBasedMultiFileSystemHistoryService(GitBasedGroup group, IHistoryService historyService) : base(group) { if (historyService == null) throw new ArgumentNullException(nameof(historyService)); m_HistoryService = historyService; }
public UserService(INoSqlDb db, IHistoryService history, IImageService image, ILogger logger, IDateTimeProvider dtp) { _db = db; _history = history; _image = image; _logger = logger; _dtp = dtp; }
public SuggestionVoteService( IUnitOfWork db, IHistoryService historyService, IVoteFinishHelper voteFinishHelper) { _db = db; _historyService = historyService; _voteFinishHelper = voteFinishHelper; }
public TrackedDownloadService(IParsingService parsingService, ICacheManager cacheManager, IHistoryService historyService, Logger logger) { _parsingService = parsingService; _historyService = historyService; _cache = cacheManager.GetCache<TrackedDownload>(GetType()); _logger = logger; }
public FailedDownloadService(IHistoryService historyService, IEventAggregator eventAggregator, IConfigService configService, Logger logger) { _historyService = historyService; _eventAggregator = eventAggregator; _configService = configService; _logger = logger; }
public HistorySpecification(IHistoryService historyService, QualityUpgradableSpecification qualityUpgradableSpecification, IConfigService configService, Logger logger) { _historyService = historyService; _qualityUpgradableSpecification = qualityUpgradableSpecification; _configService = configService; _logger = logger; }
public HistorySpecification(IHistoryService historyService, QualityUpgradableSpecification qualityUpgradableSpecification, IProvideDownloadClient downloadClientProvider, Logger logger) { _historyService = historyService; _qualityUpgradableSpecification = qualityUpgradableSpecification; _downloadClientProvider = downloadClientProvider; _logger = logger; }
public CallHistoryViewModel(IHistoryService historyService, DialpadViewModel dialpadViewModel) : this() { _historyService = historyService; _contactService = ServiceManager.Instance.ContactService; _contactService.ContactAdded += OnNewContactAdded; _contactService.ContactsChanged += OnContactChanged; _contactService.ContactRemoved += OnContactRemoved; _historyService.OnCallHistoryEvent += CallHistoryEventChanged; _dialpadViewModel = dialpadViewModel; _dialpadViewModel.PropertyChanged += OnDialpadPropertyChanged; }
public CompletedDownloadService(IEventAggregator eventAggregator, IConfigService configService, IDiskProvider diskProvider, IDownloadedEpisodesImportService downloadedEpisodesImportService, IHistoryService historyService, Logger logger) { _eventAggregator = eventAggregator; _configService = configService; _diskProvider = diskProvider; _downloadedEpisodesImportService = downloadedEpisodesImportService; _historyService = historyService; _logger = logger; }
public CompletedDownloadService(IConfigService configService, IEventAggregator eventAggregator, IHistoryService historyService, IDownloadedEpisodesImportService downloadedEpisodesImportService, IParsingService parsingService, Logger logger) { _configService = configService; _eventAggregator = eventAggregator; _historyService = historyService; _downloadedEpisodesImportService = downloadedEpisodesImportService; _parsingService = parsingService; _logger = logger; }
public GitBasedMultiFileSystemSnapshot(Commit commit, IHistoryService historyService) { if (commit == null) throw new ArgumentNullException(nameof(commit)); if (historyService == null) throw new ArgumentNullException(nameof(historyService)); if(!IsSnapshot(commit)) throw new ArgumentException("The specified commit is not a MultiFileSystemSnapshot", nameof(commit)); m_Commit = commit; m_HistoryService = historyService; m_SnapshotIds = new Lazy<IDictionary<string, string>>(LoadSnapshotIds); }
public static GitBasedMultiFileSystemSnapshot Create(Repository repository, BranchName branchName, IHistoryService historyService) { var directoryCreator = new LocalItemCreator(); var branch = repository.GetBranch(branchName); string commitId; using (var workingRepository = new TemporaryWorkingDirectory(repository.Info.Path, branch.FriendlyName)) { var snapshotDirectory = new Directory(null, s_SnapshotDirectoryName); foreach (var fileSystemHistory in historyService.Items) { var fileName = fileSystemHistory.Name + s_FileNameSuffix; var content = fileSystemHistory.LatestFileSystemSnapshot?.Id ?? ""; snapshotDirectory.Add(d => new TextFile(d, fileName, content)); } var snapshotDirectoryPath = Path.Combine(workingRepository.Location, s_SnapshotDirectoryName); directoryCreator.CreateDirectoryInPlace(snapshotDirectory, snapshotDirectoryPath, true); if (workingRepository.HasChanges) { try { commitId = workingRepository.Commit("Created multi-filesystem snapshot"); workingRepository.Push(); } catch (EmptyCommitException) { // no changes after all (HasChanges does not seem to be a 100% accurate) commitId = repository.GetBranch(branchName).Tip.Sha; } } else { commitId = repository.GetBranch(branchName).Tip.Sha; } } var commit = repository.Lookup<Commit>(commitId); return IsSnapshot(commit) ? new GitBasedMultiFileSystemSnapshot(commit, historyService) : null; }
/// <summary> /// Initializes a new instance of the <see cref="PagesApiContext" /> class. /// </summary> /// <param name="lifetimeScope">The lifetime scope.</param> /// <param name="repository">The repository.</param> /// <param name="sitemapService">The sitemap service.</param> /// <param name="historyService">The history service.</param> public PagesApiContext(ILifetimeScope lifetimeScope, IRepository repository = null, ISitemapService sitemapService = null, IHistoryService historyService = null) : base(lifetimeScope, repository) { if (historyService == null) { this.historyService = Resolve<IHistoryService>(); } else { this.historyService = historyService; } if (sitemapService == null) { this.sitemapService = Resolve<ISitemapService>(); } else { this.sitemapService = sitemapService; } }
public ScreenHistory() { InitializeComponent(); this.historyService = Win32ServiceManager.SharedManager.HistoryService; this.historyService.onHistoryEvent += this.historyService_onHistoryEvent; this.filterItems = new List<FilterItem>(new FilterItem[] { new FilterItem("All Events", "/BogheApp;component/embedded/16/date_time_16.png", HistoryEvent.StatusType.All, MediaType.All), new FilterItem("All Calls", "/BogheApp;component/embedded/16/call_16.png", HistoryEvent.StatusType.All, MediaType.AudioVideo), new FilterItem("Outgoing Calls", "/BogheApp;component/embedded/16/call_outgoing_16.png", HistoryEvent.StatusType.Outgoing, MediaType.AudioVideo), new FilterItem("Incoming Calls", "/BogheApp;component/embedded/16/call_incoming_16.png", HistoryEvent.StatusType.Incoming, MediaType.AudioVideo), new FilterItem("Missed Calls", "/BogheApp;component/embedded/16/call_missed_16.png", HistoryEvent.StatusType.Missed, MediaType.AudioVideo), new FilterItem("Messaging", "/BogheApp;component/embedded/16/messages_16.png", HistoryEvent.StatusType.All, MediaType.Messaging), new FilterItem("File Transfers", "/BogheApp;component/embedded/16/document_up_down_16.png", HistoryEvent.StatusType.All, MediaType.FileTransfer), }); this.listBox.ItemTemplateSelector = new DataTemplateSelectorHistory(); this.UpdateSource(); this.comboBoxFilterCriteria.ItemsSource = this.filterItems; this.comboBoxFilterCriteria.SelectedIndex = 0; this.historyView.Filter = delegate(object @event) { HistoryEvent hEvent = @event as HistoryEvent; if (hEvent == null) { return false; } if (((hEvent.Status & this.statusToDisplay) == hEvent.Status) && ((hEvent.MediaType & this.mediaTypeToDisplay) == hEvent.MediaType)) { return hEvent.DisplayName.StartsWith(this.textBoxSearchCriteria.Text, StringComparison.InvariantCultureIgnoreCase); } return false; }; }
public HistoryController(ILogger <HistoryController> logger, IHistoryService historyService) { _logger = logger; _historyService = historyService; }
public virtual void initServices() { runtimeService = engineRule.RuntimeService; managementService = engineRule.ManagementService; historyService = engineRule.HistoryService; }
public ScreenContactEdit(Contact contact, Group group) : base() { InitializeComponent(); if ((this.contact = contact) != null) { this.textBoxSipUri.Text = this.contact.UriString ?? this.contact.UriString; this.textBoxDisplayName.Text = this.contact.DisplayName ?? this.contact.DisplayName; this.textBoxSipUri.IsEnabled = false; this.editMode = true; this.labelTitle.Content = Strings.Text_EditContact; } else { String realm = Win32ServiceManager.SharedManager.ConfigurationService.Get(Configuration.ConfFolder.NETWORK, Configuration.ConfEntry.REALM, Configuration.DEFAULT_NETWORK_REALM); this.contact = new Contact(); if (group != null) { this.contact.GroupName = group.Name; } this.textBoxSipUri.Text = this.contact.UriString = String.Format("sip:johndoe@{0}", realm.Replace("sip:", String.Empty)); this.textBoxDisplayName.Text = this.contact.DisplayName = "John Doe"; this.textBoxSipUri.IsEnabled = true; this.editMode = false; this.labelTitle.Content = Strings.Text_AddContact; } this.contactService = Win32ServiceManager.SharedManager.ContactService; this.historyService = Win32ServiceManager.SharedManager.HistoryService; this.screenService = Win32ServiceManager.SharedManager.Win32ScreenService; }
public HistoryController(IDistributedCache distributedCache, IHistoryService historyService) { _distributedCache = distributedCache; _historyService = historyService; }
public ContentHistoryService(IHistoryService historyService) { this.historyService = historyService; }
public StudentController(ICourseService courseService, ISpecialtyService specialtyService, IGroupService groupService, IStudentService studentService, IUnitOfWorkAsync unitOfWork, IHistoryService historyService) { _courseService = courseService; _specialtyService = specialtyService; _groupService = groupService; _studentService = studentService; _unitOfWork = unitOfWork; _historyService = historyService; }
public virtual void initServices() { historyService = engineRule.HistoryService; identityService = engineRule.IdentityService; }
public UpdateIssueHandler(IIssueRepository issueRepository, ILogger <UpdateIssueHandler> logger, IMessageBroker messageBroker, IHistoryService historyService, IProjectsApiHttpClient projectsApiHttpClient, IAppContext appContext) { _issueRepository = issueRepository; _logger = logger; _messageBroker = messageBroker; _historyService = historyService; _projectsApiHttpClient = projectsApiHttpClient; _appContext = appContext; }
public History(IHistoryService historyService, IQueue queue) { _historyService = historyService; }
public HomeController(IComputerService computerService, IHistoryService historyService) { _computerService = computerService; _historyService = historyService; }
/// <summary> /// Initializes a new instance of the <see cref="GetContentHistoryCommand" /> class. /// </summary> public GetContentHistoryCommand(IHistoryService historyService) { this.historyService = historyService; }
/// <summary>Initializes the GroupController</summary> public GroupController(IGroupService groupService, ISpendingService spendingService, IHistoryService historyService) { GroupService = groupService; SpendingService = spendingService; HistoryService = historyService; }
public HistoryController(IHistoryService historyService, IErrorService errorService) : base(errorService) { _historyService = historyService; }
public DeliveryTypeHandler(ICommonDataService dataService, IHistoryService historyService) { _dataService = dataService; _historyService = historyService; }
public static async Task <IList <HistoryObject> > GetHistoryObject(this BaseEntity entity, IHistoryService historyService) { return(await historyService.GetHistoryObjectForEntity(entity)); }
public FailedDownloadService(IHistoryService historyService, IEventAggregator eventAggregator) { _historyService = historyService; _eventAggregator = eventAggregator; }
public LoadingArrivalTimeHandler(ICommonDataService dataService, IHistoryService historyService) { _dataService = dataService; _historyService = historyService; }
public FastSellHandler(ITransactionService transactionService, IHistoryService historyService) { _transactionService = transactionService; _historyService = historyService; }
public FhirResponse History(string type, HistoryParameters parameters) { IHistoryService historyExtension = this.GetFeature <IHistoryService>(); return(CreateSnapshotResponse(historyExtension.History(type, parameters))); }
public HistoryController(ICommandBus commandBus, IHistoryService historyService) : base(commandBus) { this.historyService = historyService; }
public AnalyticsService(IHistoryService historyService, IConfigFileProvider configFileProvider) { _configFileProvider = configFileProvider; _historyService = historyService; }
public DeliveryStatusHandler(ICommonDataService dataService, IHistoryService historyService) { this._dataService = dataService; _historyService = historyService; }
public ScreenContacts() : base() { InitializeComponent(); this.contactService = Win32ServiceManager.SharedManager.ContactService; this.sipService = Win32ServiceManager.SharedManager.SipService; this.historyService = Win32ServiceManager.SharedManager.HistoryService; // important to do it here before setting ItemsSource this.contactService.onContactEvent += this.contactService_onContactEvent; this.sipService.onSubscriptionEvent += this.sipService_onSubscriptionEvent; this.UpdateSource(); }
public AlreadyImportedSpecification(IHistoryService historyService, Logger logger) { _historyService = historyService; _logger = logger; }
public ShippingWarehouseNameHandler(ICommonDataService dataService, IHistoryService historyService) { _dataService = dataService; _historyService = historyService; }
public HistoryController(IHistoryService historyService) { _historyService = historyService; }
public SessionWindow(String remotePartyUri) : base() { InitializeComponent(); this.remotePartyUri = remotePartyUri; this.Title = String.Empty; this.buttonCallOrAnswer.Tag = Strings.Text_Call; this.fileTransferSessions = new List<MyMsrpSession>(); this.imActivityIndicator = new IMActivityIndicator(this.remotePartyUri); this.videoDisplayLocal = new VideoDisplay(); this.videoDisplayLocal.VerticalAlignment = VerticalAlignment.Stretch; this.videoDisplayLocal.HorizontalAlignment = HorizontalAlignment.Stretch; this.videoDisplayScrenCastLocal = new VideoDisplay(); this.videoDisplayScrenCastLocal.VerticalAlignment = this.videoDisplayLocal.VerticalAlignment; this.videoDisplayScrenCastLocal.HorizontalAlignment = this.videoDisplayLocal.HorizontalAlignment; this.videoDisplayRemote = new VideoDisplay(); this.videoDisplayRemote.ToolTip = this.borderVideoDispalyRemote.ToolTip; this.borderVideoDispalyRemote.Child = this.videoDisplayRemote; this.borderVideoDispalyLocal.Child = this.videoDisplayLocal; this.borderVideoDispalyScrenCastLocal.Child = this.videoDisplayScrenCastLocal; this.labelInfo.Content = String.Empty; this.timerCall = new Timer(1000); this.timerCall.AutoReset = true; this.timerCall.Elapsed += this.timerCall_Elapsed; // Services this.contactService = Win32ServiceManager.SharedManager.ContactService; this.sipService = Win32ServiceManager.SharedManager.SipService; this.historyService = Win32ServiceManager.SharedManager.HistoryService; this.soundService = Win32ServiceManager.SharedManager.SoundService; this.configurationService = Win32ServiceManager.SharedManager.ConfigurationService; // Messaging this.historyDataSource = new MyObservableCollection<HistoryEvent>(); this.historyCtrl.ItemTemplateSelector = new DataTemplateSelectorMessaging(); this.historyCtrl.ItemsSource = this.historyDataSource; // Register events this.sipService.onInviteEvent += this.sipService_onInviteEvent; this.imActivityIndicator.RemoteStateChangedEvent += this.imActivityIndicator_RemoteStateChangedEvent; this.imActivityIndicator.SendMessageEvent += this.imActivityIndicator_SendMessageEvent; this.volume = this.configurationService.Get(Configuration.ConfFolder.GENERAL, Configuration.ConfEntry.AUDIO_VOLUME, Configuration.DEFAULT_GENERAL_AUDIO_VOLUME); this.sliderVolume.Value = (double)this.volume; lock (SessionWindow.windows) { SessionWindow.windows.Add(this); } }
public HistoryViewModel(IHistoryService historyService, INavigationService navigationService, IFavoriteService favoriteService) : base(navigationService, favoriteService) { this.historyService = historyService; HistoryItems = new ObservableCollection<Group<BaseEntry>>(); }
/// <summary> /// Create a controller and set the service /// </summary> public HistoryController(IHistoryService service) { _service = service; }
public UpgradeHistorySpecification(IHistoryService historyService, QualityUpgradableSpecification qualityUpgradableSpecification, Logger logger) { _historyService = historyService; _qualityUpgradableSpecification = qualityUpgradableSpecification; _logger = logger; }
public DishController(IErrorService errorService, IDishService dishService, IHistoryService historyService) : base(errorService, historyService) { this.dishService = dishService; }
protected void OnLoaded(object sender, RoutedEventArgs e) { if (_historyService != null) return; _historyService = ServiceManager.Instance.HistoryService; _historyService.OnCallHistoryEvent += OnHistoryCallEvent; lstCallsBox.Visibility = Visibility.Collapsed; }
public HistoryController(IServiceFactory factory, IMapper mapper) { _service = factory.CreateHistoryService(); _mapper = mapper; }
public RetrySpecification(IHistoryService historyService, IConfigService configService, Logger logger) { _historyService = historyService; _configService = configService; _logger = logger; }
public UserController(IUserService userService, IHistoryService historyService) { _userService = userService; _historyService = historyService; }
public MessagingWindow(String remotePartyUri) { InitializeComponent(); this.remotePartyUri = remotePartyUri; this.Title = String.Empty; this.messagingType = MediaType.None; this.fileTransferSessions = new List<MyMsrpSession>(); // Services this.configurationService = Win32ServiceManager.SharedManager.ConfigurationService; this.contactService = Win32ServiceManager.SharedManager.ContactService; this.sipService = Win32ServiceManager.SharedManager.SipService; this.historyService = Win32ServiceManager.SharedManager.HistoryService; this.soundService = Win32ServiceManager.SharedManager.SoundService; // Messaging this.historyDataSource = new MyObservableCollection<HistoryEvent>(); this.historyCtrl.ItemTemplateSelector = new DataTemplateSelectorMessaging(); this.historyCtrl.ItemsSource = this.historyDataSource; // Participants this.participants = new MyObservableCollection<Participant>(); this.participants.Add(new Participant(this.remotePartyUri)); this.listBoxParticipants.ItemsSource = this.participants; // Events this.sipService.onInviteEvent += this.sipService_onInviteEvent; lock (MessagingWindow.windows) { MessagingWindow.windows.Add(this); } }
public GrabbedReleaseQualitySpecification(IHistoryService historyService, Logger logger) { _historyService = historyService; _logger = logger; }
public SessionWindow(String remotePartyUri) : base() { InitializeComponent(); this.remotePartyUri = remotePartyUri; this.Title = String.Empty; this.buttonCallOrAnswer.Tag = "Call"; this.fileTransferSessions = new List<MyMsrpSession>(); this.videoDisplayLocal = new VideoDisplay(); this.videoDisplayLocal.Visibility = Visibility.Hidden; this.videoDisplayRemote = new VideoDisplay(); this.videoDisplayRemote.Visibility = Visibility.Hidden; this.videoDisplayRemote.ToolTip = this.borderVideoDispalyRemote.ToolTip; this.borderVideoDispalyRemote.Child = this.videoDisplayRemote; this.borderVideoDispalyLocal.Child = this.videoDisplayLocal; this.labelInfo.Content = String.Empty; this.timerCall = new Timer(1000); this.timerCall.AutoReset = true; this.timerCall.Elapsed += this.timerCall_Elapsed; // Services this.contactService = Win32ServiceManager.SharedManager.ContactService; this.sipService = Win32ServiceManager.SharedManager.SipService; this.historyService = Win32ServiceManager.SharedManager.HistoryService; this.soundService = Win32ServiceManager.SharedManager.SoundService; this.configurationService = Win32ServiceManager.SharedManager.ConfigurationService; // Messaging this.historyDataSource = new MyObservableCollection<HistoryEvent>(); this.historyCtrl.ItemTemplateSelector = new DataTemplateSelectorMessaging(); this.historyCtrl.ItemsSource = this.historyDataSource; // Register to SIP events this.sipService.onInviteEvent += this.sipService_onInviteEvent; lock (SessionWindow.windows) { SessionWindow.windows.Add(this); } }
public HistoryEventController(IHistoryService historyService, IMapper mapper) { Console.WriteLine("history controller"); _mapper = mapper; _historyService = historyService; }
public OnChangeVehicleTypeId(ICommonDataService dataService, IHistoryService historyService, IDeliveryCostCalcService calcService) { _dataService = dataService; _historyService = historyService; _calcService = calcService; }
public MainWindow() { InitializeComponent(); // Initialize Screen Service this.screenService = Win32ServiceManager.SharedManager.Win32ScreenService; this.screenService.SetTabControl(this.tabControl); this.screenService.SetProgressLabel(this.labelProgressInfo); // Initialize SIP Service this.sipService = Win32ServiceManager.SharedManager.SipService; this.sipService.onStackEvent += this.sipService_onStackEvent; this.sipService.onRegistrationEvent += this.sipService_onRegistrationEvent; this.sipService.onInviteEvent += this.sipService_onInviteEvent; this.sipService.onMessagingEvent += this.sipService_onMessagingEvent; this.sipService.onSubscriptionEvent += this.sipService_onSubscriptionEvent; this.sipService.onHyperAvailabilityTimedout += this.sipService_onHyperAvailabilityTimedout; // Initialize other Services this.configurationService = Win32ServiceManager.SharedManager.ConfigurationService; this.contactService = Win32ServiceManager.SharedManager.ContactService; this.soundService = Win32ServiceManager.SharedManager.SoundService; this.historyService = Win32ServiceManager.SharedManager.HistoryService; this.stateMonitorService = Win32ServiceManager.SharedManager.StateMonitorService; this.xcapService = Win32ServiceManager.SharedManager.XcapService; this.configurationService.onConfigurationEvent += this.configurationService_onConfigurationEvent; this.xcapService.onXcapEvent += this.xcapService_onXcapEvent; this.stateMonitorService.onStateChangedEvent += this.stateMonitorService_onStateChangedEvent; // Hook Closeable items this.AddHandler(CloseableTabItem.CloseTabEvent, new RoutedEventHandler(this.CloseTab)); this.registrations = new MyObservableCollection<RegistrationInfo>(); this.watchers = new MyObservableCollection<WatcherInfo>(); // Show Authentication Screen //this.screenService.Show(ScreenType.Contacts); this.screenService.Show(ScreenType.Authentication); }
public MenuPage2ViewModel(IHistoryService historyService) { _historyService = historyService; }