private async Task ApplyWindowsImage(WindowsVolumes volumes, InstallOptions options, IObserver <double> progressObserver = null) { Log.Information("Applying Windows Image..."); await windowsImageService.ApplyImage(volumes.Windows, options.ImagePath, options.ImageIndex, progressObserver); progressObserver?.OnNext(double.NaN); }
public async Task Deploy(WindowsDeploymentOptions options, IDevice device, IDownloadProgress progressObserver) { Log.Information("Applying Windows Image"); progressObserver.Percentage.OnNext(double.NaN); await imageService.ApplyImage(await device.GetWindowsVolume(), options.ImagePath, options.ImageIndex, options.UseCompact, progressObserver); await MakeBootable(device); }
public async Task Deploy(WindowsDeploymentOptions options, IDevice device, IOperationProgress progressObserver = null, CancellationToken cancellationToken = default) { Log.Information("Applying Windows Image"); progressObserver?.Percentage.OnNext(double.NaN); var partition = await device.GetWindowsPartition(); await imageService.ApplyImage(partition, options.ImagePath, options.ImageIndex, options.UseCompact, progressObserver, cancellationToken); }
public async Task Deploy() { await phone.RemoveExistingWindowsPartitions(); var options = optionsProvider.Options; await AllocateSpace(options.SizeReservedForWindows); var partitions = await CreatePartitions(); await imageService.ApplyImage(await phone.GetWindowsVolume(), options.ImagePath, options.ImageIndex, options.UseCompact, progressObserver); await MakeBootable(partitions); }
public Task Execute(string wimFile, int index, string path) { return(windowsImageService.ApplyImage(path, wimFile, index, progressObserver: progress)); }