public ManagedApplicationsService() { _managedApplicationsInfo = new ManagedApplicationsInfo(_managedApplications); _managedApplicationsInfo.State = ApplicationsInfoState.Loading; _currentProcessId = Process.GetCurrentProcess().Id; _is64BitProcess = PlatformHelper.Is64BitProcess; //_refreshTimer.Interval = TimeSpan.FromSeconds(3); //_refreshTimer.Tick += (s, e) => RefreshList(); //_refreshTimer.Start(); if (PlatformHelper.Is64BitProcess) { _process32Service = ServiceLocator.Resolve <Process32Service>(); } // Dispatcher.CurrentDispatcher.BeginInvoke((Action)RefreshList, DispatcherPriority.Background); }
public ManagedApplicationsService() { _managedApplicationsInfo = new ManagedApplicationsInfo(_managedApplications); _managedApplicationsInfo.State = ApplicationsInfoState.Loading; _currentProcessId = Process.GetCurrentProcess().Id; _is64BitProcess = PlatformHelper.Is64BitProcess; _refreshTimer.Interval = TimeSpan.FromSeconds(3); _refreshTimer.Tick += (s, e) => RefreshList(); _refreshTimer.Start(); if(PlatformHelper.Is64BitProcess) { _process32Service = ServiceLocator.Resolve<Process32Service>(); } Dispatcher.CurrentDispatcher.BeginInvoke((Action)RefreshList, DispatcherPriority.Background); }