Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 public Task Execute(string wimFile, int index, string path)
 {
     return(windowsImageService.ApplyImage(path, wimFile, index, progressObserver: progress));
 }