Exemplo n.º 1
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.º 2
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);
        }