public PackageExpertViewModel(
            string packagePath,
            IInterProcessCommunicationManager interProcessCommunicationManager,
            ISelfElevationProxyProvider <IAppxPackageQuery> appxPackageQueryProvider,
            ISelfElevationProxyProvider <IAppxVolumeManager> appxVolumeManagerProvider,
            ISelfElevationProxyProvider <ISigningManager> signManager,
            IInteractionService interactionService,
            IAppxFileViewer fileViewer,
            FileInvoker fileInvoker)
        {
            this.interProcessCommunicationManager = interProcessCommunicationManager;
            this.appxPackageQueryProvider         = appxPackageQueryProvider;
            this.appxVolumeManagerProvider        = appxVolumeManagerProvider;
            this.fileViewer  = fileViewer;
            this.fileInvoker = fileInvoker;
            this.packagePath = packagePath;

            this.Trust = new TrustViewModel(packagePath, interactionService, signManager);
        }
Beispiel #2
0
        public PackageExpertViewModel(
            string packagePath,
            IInterProcessCommunicationManager interProcessCommunicationManager,
            ISelfElevationProxyProvider <IAppxPackageManager> appxPackageManagerProvider,
            ISelfElevationProxyProvider <IAppxVolumeManager> appxVolumeManagerProvider,
            ISelfElevationProxyProvider <ISigningManager> signManager,
            IInteractionService interactionService,
            IRunningAppsDetector runningDetector,
            IDialogService dialogService)
        {
            this.interProcessCommunicationManager = interProcessCommunicationManager;
            this.appxPackageManagerProvider       = appxPackageManagerProvider;
            this.appxVolumeManagerProvider        = appxVolumeManagerProvider;
            this.runningDetector = runningDetector;
            this.packagePath     = packagePath;
            this.dialogService   = dialogService;

            this.Trust = new TrustViewModel(packagePath, interactionService, signManager);
        }
Beispiel #3
0
        public PackageExpertControl(IEventAggregator eventAggregator,
                                    IInterProcessCommunicationManager ipcManager,
                                    ISelfElevationProxyProvider <IAppxPackageManager> packageManagerProvider,
                                    ISelfElevationProxyProvider <IAppxVolumeManager> volumeManagerProvider,
                                    ISelfElevationProxyProvider <ISigningManager> signingManagerProvider,
                                    IRunningAppsDetector runningDetector,
                                    IInteractionService interactionService,
                                    IDialogService dialogService,
                                    IConfigurationService configurationService
                                    )
        {
            this.context = RegionContext.GetObservableContext(this);
            this.context.PropertyChanged += this.OnPropertyChanged;
            this.ipcManager             = ipcManager;
            this.packageManagerProvider = packageManagerProvider;
            this.volumeManagerProvider  = volumeManagerProvider;
            this.runningDetector        = runningDetector;
            this.interactionService     = interactionService;
            this.signingManagerProvider = signingManagerProvider;
            this.dialogService          = dialogService;
            this.configurationService   = configurationService;

            eventAggregator.GetEvent <ToolsChangedEvent>().Subscribe(this.CreateTools, ThreadOption.UIThread);
        }
Beispiel #4
0
        public PackageExpertControl(IEventAggregator eventAggregator,
                                    IInterProcessCommunicationManager ipcManager,
                                    ISelfElevationProxyProvider <IAppxPackageQuery> packageQueryProvider,
                                    ISelfElevationProxyProvider <IAppxVolumeManager> volumeManagerProvider,
                                    ISelfElevationProxyProvider <ISigningManager> signingManagerProvider,
                                    IInteractionService interactionService,
                                    IConfigurationService configurationService,
                                    IAppxFileViewer fileViewer,
                                    FileInvoker fileInvoker
                                    )
        {
            this.context = RegionContext.GetObservableContext(this);
            this.context.PropertyChanged += this.OnPropertyChanged;
            this.ipcManager             = ipcManager;
            this.packageQueryProvider   = packageQueryProvider;
            this.volumeManagerProvider  = volumeManagerProvider;
            this.interactionService     = interactionService;
            this.signingManagerProvider = signingManagerProvider;
            this.configurationService   = configurationService;
            this.fileViewer             = fileViewer;
            this.fileInvoker            = fileInvoker;

            eventAggregator.GetEvent <ToolsChangedEvent>().Subscribe(this.CreateTools, ThreadOption.UIThread);
        }
Beispiel #5
0
 public Client(IInterProcessCommunicationManager ipcManager)
 {
     this.ipcManager = ipcManager;
 }