コード例 #1
0
 public InspectionService()
 {
     if (PlatformHelper.Is64BitProcess)
     {
         _process32Service = ServiceLocator.Resolve <Process32Service>();
         _process32Service.Start32BitProcessHelper();
     }
 }
コード例 #2
0
 public InspectionService()
 {
     if (PlatformHelper.Is64BitProcess)
     {
         _process32Service = ServiceLocator.Resolve<Process32Service>();
         _process32Service.Start32BitProcessHelper();
     }
 }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }