public GitBasedMultiFileSystemHistoryService(GitBasedGroup group, IHistoryService historyService) : base(group)
 {
     if (historyService == null)            
         throw new ArgumentNullException(nameof(historyService));
     
     m_HistoryService = historyService;
 }
Example #2
0
 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;
 }
Example #4
0
 public TrackedDownloadService(IParsingService parsingService,
     ICacheManager cacheManager,
     IHistoryService historyService,
     Logger logger)
 {
     _parsingService = parsingService;
     _historyService = historyService;
     _cache = cacheManager.GetCache<TrackedDownload>(GetType());
     _logger = logger;
 }
Example #5
0
 public FailedDownloadService(IHistoryService historyService,
                              IEventAggregator eventAggregator,
                              IConfigService configService,
                              Logger logger)
 {
     _historyService = historyService;
     _eventAggregator = eventAggregator;
     _configService = configService;
     _logger = logger;
 }
Example #6
0
 public HistorySpecification(IHistoryService historyService,
                                    QualityUpgradableSpecification qualityUpgradableSpecification,
                                    IConfigService configService,
                                    Logger logger)
 {
     _historyService = historyService;
     _qualityUpgradableSpecification = qualityUpgradableSpecification;
     _configService = configService;
     _logger = logger;
 }
Example #7
0
 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;
 }
Example #10
0
 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;
        }
Example #13
0
        /// <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;
            }
        }
Example #14
0
        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;
        }
Example #18
0
 public HistoryController(IDistributedCache distributedCache, IHistoryService historyService)
 {
     _distributedCache = distributedCache;
     _historyService   = historyService;
 }
Example #19
0
 public ContentHistoryService(IHistoryService historyService)
 {
     this.historyService = historyService;
 }
Example #20
0
 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;
 }
Example #21
0
 public virtual void initServices()
 {
     historyService  = engineRule.HistoryService;
     identityService = engineRule.IdentityService;
 }
Example #22
0
 public ContentHistoryService(IHistoryService historyService)
 {
     this.historyService = historyService;
 }
 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;
 }
Example #24
0
 public History(IHistoryService historyService, IQueue queue)
 {
     _historyService = historyService;
 }
Example #25
0
 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;
 }
Example #27
0
 /// <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;
 }
Example #30
0
 public static async Task <IList <HistoryObject> > GetHistoryObject(this BaseEntity entity, IHistoryService historyService)
 {
     return(await historyService.GetHistoryObjectForEntity(entity));
 }
Example #31
0
 public FailedDownloadService(IHistoryService historyService,
                              IEventAggregator eventAggregator)
 {
     _historyService = historyService;
     _eventAggregator = eventAggregator;
 }
Example #32
0
 public LoadingArrivalTimeHandler(ICommonDataService dataService, IHistoryService historyService)
 {
     _dataService    = dataService;
     _historyService = historyService;
 }
 public FastSellHandler(ITransactionService transactionService, IHistoryService historyService)
 {
     _transactionService = transactionService;
     _historyService     = historyService;
 }
Example #34
0
        public FhirResponse History(string type, HistoryParameters parameters)
        {
            IHistoryService historyExtension = this.GetFeature <IHistoryService>();

            return(CreateSnapshotResponse(historyExtension.History(type, parameters)));
        }
Example #35
0
 public HistoryController(ICommandBus commandBus, IHistoryService historyService)
     : base(commandBus)
 {
     this.historyService = historyService;
 }
Example #36
0
 public AnalyticsService(IHistoryService historyService, IConfigFileProvider configFileProvider)
 {
     _configFileProvider = configFileProvider;
     _historyService     = historyService;
 }
 public DeliveryStatusHandler(ICommonDataService dataService, IHistoryService historyService)
 {
     this._dataService = dataService;
     _historyService   = historyService;
 }
Example #38
0
        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();
        }
Example #39
0
 public AlreadyImportedSpecification(IHistoryService historyService,
                                     Logger logger)
 {
     _historyService = historyService;
     _logger         = logger;
 }
Example #40
0
 public ShippingWarehouseNameHandler(ICommonDataService dataService, IHistoryService historyService)
 {
     _dataService    = dataService;
     _historyService = historyService;
 }
 public HistoryController(IHistoryService historyService)
 {
     _historyService = historyService;
 }
Example #42
0
        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>>();
 }
Example #44
0
 /// <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;
 }
Example #46
0
 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;
 }
Example #48
0
 public HistoryController(IServiceFactory factory, IMapper mapper)
 {
     _service = factory.CreateHistoryService();
     _mapper  = mapper;
 }
Example #49
0
 public RetrySpecification(IHistoryService historyService, IConfigService configService, Logger logger)
 {
     _historyService = historyService;
     _configService = configService;
     _logger = logger;
 }
Example #50
0
 public UserController(IUserService userService, IHistoryService historyService)
 {
     _userService = userService;
     _historyService = historyService;
 }
Example #51
0
        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;
 }
Example #53
0
        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);
            }
        }
Example #54
0
 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;
 }
Example #56
0
        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);
        }
Example #57
0
 public MenuPage2ViewModel(IHistoryService historyService)
 {
     _historyService = historyService;
 }