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); }