public DeployWindows(IDeploymentContext deploymentContext, IWindowsDeployer deployer, IOperationProgress progressObserver, IFileSystemOperations fileSystemOperations, IOperationContext operationContext) : base(deploymentContext, fileSystemOperations, operationContext) { this.deploymentContext = deploymentContext; this.deployer = deployer; this.progressObserver = progressObserver; }
public AdvancedViewModel(ILumiaSettingsService lumiaSettingsService, IFileSystemOperations fileSystemOperations, UIServices uiServices, IDeploymentContext context, IOperationContext operationContext, IList <Meta <IDiskLayoutPreparer> > diskPreparers, IWindowsDeployer deployer, ILogCollector logCollector, IOperationProgress progress) { this.lumiaSettingsService = lumiaSettingsService; this.uiServices = uiServices; this.context = context; this.deployer = deployer; this.logCollector = logCollector; this.progress = progress; DiskPreparers = diskPreparers; DeleteDownloadedWrapper = new CommandWrapper <Unit, Unit>(this, ReactiveCommand.CreateFromTask(() => DeleteDownloaded(fileSystemOperations)), uiServices.ContextDialog, operationContext); ForceDualBootWrapper = new CommandWrapper <Unit, Unit>(this, ReactiveCommand.CreateFromTask(ForceDualBoot), uiServices.ContextDialog, operationContext); ForceSingleBootWrapper = new CommandWrapper <Unit, Unit>(this, ReactiveCommand.CreateFromTask(ForceDisableDualBoot), uiServices.ContextDialog, operationContext); BackupCommandWrapper = new CommandWrapper <Unit, Unit>(this, ReactiveCommand.CreateFromTask(Backup), uiServices.ContextDialog, operationContext); RestoreCommandWrapper = new CommandWrapper <Unit, Unit>(this, ReactiveCommand.CreateFromTask(Restore), uiServices.ContextDialog, operationContext); CollectLogsCommmandWrapper = new CommandWrapper <Unit, Unit>(this, ReactiveCommand.CreateFromTask(CollectLogs), uiServices.ContextDialog, operationContext); IsBusyObservable = Observable.Merge(DeleteDownloadedWrapper.Command.IsExecuting, BackupCommandWrapper.Command.IsExecuting, RestoreCommandWrapper.Command.IsExecuting, ForceDualBootWrapper.Command.IsExecuting, ForceSingleBootWrapper.Command.IsExecuting, CollectLogsCommmandWrapper.Command.IsExecuting); preparerUpdater = this.WhenAnyValue(x => x.SelectedPreparer) .Where(x => x != null) .Subscribe(x => { context.DiskLayoutPreparer = x.Value; lumiaSettingsService.DiskPreparer = (string)x.Metadata["Name"]; }); SelectedPreparer = GetInitialDiskPreparer(); }
public WoaMaintenanceViewModel(IWindowsDeployer deployer, UIServices uiServices, IDeploymentContext context, IOperationProgress progress, IOperationContext operationContext, ILumiaSettingsService lumiaSettingsService) { this.deployer = deployer; this.uiServices = uiServices; this.context = context; this.progress = progress; this.lumiaSettingsService = lumiaSettingsService; BackupProgressViewModel = new ProgressViewModel(ReactiveCommand.CreateFromTask(Backup), progress, this, uiServices.ContextDialog, operationContext); RestoreProgressViewModel = new ProgressViewModel(ReactiveCommand.CreateFromTask(Restore), progress, this, uiServices.ContextDialog, operationContext); IsBusyObservable = Observable.Merge(new[] { BackupProgressViewModel.Command.IsExecuting, RestoreProgressViewModel.Command.IsExecuting, }); }
public RaspberryPiDeployer(IImageFlasher flasher, IWindowsDeployer <RaspberryPi> windowsDeployer) { this.flasher = flasher; this.windowsDeployer = windowsDeployer; }
public ProviderBasedWindowsDeployer(IWindowsOptionsProvider optionsProvider, IDeviceProvider deviceProvider, IWindowsDeployer deployer) { this.optionsProvider = optionsProvider; this.deviceProvider = deviceProvider; this.deployer = deployer; }
public Deployer(ICoreDeployer coreDeployer, IWindowsDeployer windowsDeployer) { this.coreDeployer = coreDeployer; this.windowsDeployer = windowsDeployer; }
public DeployWindows(IWindowsDeployer windowsDeployer) { this.windowsDeployer = windowsDeployer; }
public LumiaDeployer(ICoreDeployer <Phone> coreDeployer, IWindowsDeployer <Phone> windowsDeployer) { this.coreDeployer = coreDeployer; this.windowsDeployer = windowsDeployer; }