public void SetUp () { _tempFolder = Path.Combine (Path.GetTempPath(), Guid.NewGuid().ToString()); Directory.CreateDirectory (_tempFolder); _fileSystemHelper = new FileSystemHelper(); }
/// <summary> /// Initializes a new instance of the <see cref="SelfMediaDatabase.Core.Operations.Prune.PruneOperation"/> class. /// </summary> /// <param name="directory">Injection wrapper of <see cref="System.IO.Directory"/>.</param> /// <param name="file">Injection wrapper of <see cref="System.IO.File"/>.</param> /// <param name="path">Injection wrapper of <see cref="System.IO.Path"/>.</param> /// <param name="imageComparer">Image comparer.</param> /// <param name="fileSystemHelper">Helper to access to files.</param> public PruneOperation( IDirectory directory, IFile file, IPath path, IImageComparer imageComparer, IFileSystemHelper fileSystemHelper, IDialog dialog, IRenameOperation renameOperation) { if (directory == null) throw new ArgumentNullException("directory"); if (file == null) throw new ArgumentNullException("file"); if (imageComparer == null) throw new ArgumentNullException("imageComparer"); if (fileSystemHelper == null) throw new ArgumentNullException("fileSystemHelper"); if (path == null) throw new ArgumentNullException("path"); if (dialog == null) throw new ArgumentNullException("dialog"); if (renameOperation == null) throw new ArgumentNullException("renameOperation"); _directory = directory; _file = file; _path = path; _imageComparer = imageComparer; _fileSystemHelper = fileSystemHelper; _dialog = dialog; _renameOperation = renameOperation; }
public void SetUp() { _mockFileHelper = MockRepository.GenerateStub<IFileSystemHelper>(); _mockExe = MockRepository.GenerateStub<IExecutable>(); _subject = new NuGetPublisher(_mockFileHelper, _mockExe); _nuGetOptionals = _subject.DeployFolder(new Directory("somedir")).ProjectId("FluentBuild").Version("1.2.3.4").Description("Project 1").Authors("author1").ApiKey("123"); }
public CodeCampService(string baseUrl, string campKey) { // ideally each app would just send in its folder path or helper instead of doing it this way // including this as a example of how to use compiler directives in shared layers #if WINDOWS_PHONE _fileHelper = new IsolatedStorageFileSystemHelper(); #elif __ANDROID__ string folderPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "../cache"); _fileHelper = new StandardFileSystemHelper(folderPath); #else string folderPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "../Library/Caches"); _fileHelper = new StandardFileSystemHelper(folderPath); #endif _fileName = campKey + ".xml"; Repository = new CodeCampRepository(null); _client = new CodeCampDataClient(baseUrl, campKey); if (!_fileHelper.FileExists(_fileName)) { downloadNewXmlFile(); } else { Repository = new CodeCampRepository(_fileHelper.ReadFile(_fileName)); } }
public SynonymFileContentCreator( DataDictionaryDbContext dbContext, IFileSystemHelper fileSystemHelper, IDependencyMatrix dependencyMatrix) : base(dbContext, fileSystemHelper, dependencyMatrix) { ObjectType = "synonym"; }
public ProceduresFileContentCreator( DataDictionaryDbContext dbContext, IFileSystemHelper fileSystemHelper, IDependencyMatrix dependencyMatrix) : base(dbContext, fileSystemHelper, dependencyMatrix) { ObjectType = "procedure"; }
internal NuGetPublisher(IFileSystemHelper fileSystemHelper, IExecutable executable) { _fileSystemHelper = fileSystemHelper; _executable = executable; _references = new List<string>(); _frameworkAssemblies = new List<FrameworkAssembly>(); _depenencyGroups = new List<DependencyGroup>(); }
public MaterializedViewFileContentGenerator( DataDictionaryDbContext dbContext, IFileSystemHelper fileSystemHelper, IDependencyMatrix dependencyMatrix) : base(dbContext, fileSystemHelper, dependencyMatrix) { ObjectType = "materialized view"; }
public ForeignKeyConstraintFileCreator( DataDictionaryDbContext dbContext, IFileSystemHelper fileSystemHelper, IDependencyMatrix dependencyMatrix) : base(dbContext, fileSystemHelper, dependencyMatrix) { ObjectType = "foreign key"; }
public static IFileSystemHelper ResolveIFileSystemHelper() { if (fileSystemHelper == null) { fileSystemHelper = new FileSystemHelper(); } return fileSystemHelper; }
public DbLinkFileContentCreator( DataDictionaryDbContext dbContext, IFileSystemHelper fileSystemHelper, IDependencyMatrix dependencyMatrix) : base(dbContext, fileSystemHelper, dependencyMatrix) { ObjectType = "database link"; }
public DbmsSchedulerJobFileContentCreator( DataDictionaryDbContext dbContext, IFileSystemHelper fileSystemHelper, IDependencyMatrix dependencyMatrix) : base(dbContext, fileSystemHelper, dependencyMatrix) { ObjectType = "dbms_scheduler job"; }
public PackagesFileContentGenerator( DataDictionaryDbContext dbContext, IFileSystemHelper fileSystemHelper, IDependencyMatrix dependencyMatrix) : base(dbContext, fileSystemHelper, dependencyMatrix) { ObjectType = "package"; }
public FileErrorLogSource(string connection, IFileSystemHelper fileSystemHelper, IErrorLogFileParser parser, ISettingsManager settingsManager, ILog log) { Connection = connection; _fileSystemHelper = fileSystemHelper; _parser = parser; _settingsManager = settingsManager; _log = log; }
public ContentRepository( ISerializationHelper serializationHelper, IFileSystemHelper fileSystemHelper, IContentFinder contentFinder) { this.serializationHelper = serializationHelper; this.fileSystemHelper = fileSystemHelper; this.contentFinder = contentFinder; }
public MainWindow() { _fsHelper = AppConfigurator.Instance.Resolve<IFileSystemHelper>(); _client = AppConfigurator.Instance.Resolve<IFtpClient>(); _appSettings = Settings.Default; _client.ListingDirectoryReceived += ClientOnListingDirectoryReceived; _client.Eror += ClientOnEror; InitializeComponent(); }
public void Initialize() { _file = Substitute.For<IFile>(); _directory = Substitute.For<IDirectory>(); _path = Substitute.For<IPath>(); _path.SetPathDefaultBehavior(); _fileSystemHelper = Substitute.For<IFileSystemHelper>(); _target = new FileOutput(_file, _directory, _path, _fileSystemHelper); }
public ConnectToDatabaseFilePresenter(IConnectToDatabaseFileView view, IFileSystemHelper fileSystemHelper, IDatabaseConnectionsHelper databaseConnectionsHelper) { View = view; _fileSystemHelper = fileSystemHelper; _databaseConnectionsHelper = databaseConnectionsHelper; RegisterEvents(); View.LoadConnections(_databaseConnectionsHelper.GetNames(ErrorLogSources.SqlServerCompact.ToString())); }
public TemporaryFileStream (Stream stream, string filePath, IFileSystemHelper fileSystemHelper) : base(stream) { ArgumentUtility.CheckNotNull ("stream", stream); ArgumentUtility.CheckNotNull ("filePath", filePath); ArgumentUtility.CheckNotNull ("fileSystemHelper", fileSystemHelper); _filePath = filePath; _fileSystemHelper = fileSystemHelper; }
public ReportGenerator(string rootFolderPath, SignalReportProgress signalEvent, SignalReportDone workDone) { this.rootFolder = rootFolderPath; this.ht = new Hashtable(); this.signalEvent = signalEvent; this.signalWorkDone = workDone; this.pathReportsFolder = ConfigurationManager.AppSettings["reportFolder"].ToString(); this.repLog = FactoryRepositoryLog.GetRepositoryLog(); this.fileSystemHelper = FactoryFileSystemHelper.GetFileSystemHelper(); }
public LocalFileProvider( IHostingEnvironment env, IHttpContextAccessor httpContextAccessor, IResizer resizer, IFileSystemHelper fileSystemHelper) { this.env = env; this.httpContextAccessor = httpContextAccessor; this.resizer = resizer; this.fileSystemHelper = fileSystemHelper; }
public void Initialize() { _path = Substitute.For<IPath>(); _path.SetPathDefaultBehavior(); _file = Substitute.For<IFile>(); _directory = Substitute.For<IDirectory>(); _fileSystemHelper = Substitute.For<IFileSystemHelper>(); _geolocationHelper = Substitute.For<IGeolocationHelper>(); _target = new ClassifyOperationTester(_path, _file, _directory, _fileSystemHelper, _geolocationHelper); }
public ErrorLogDownloader(NetworkConnection connection, IWebRequestHelper webRequst, IFileSystemHelper fileSystemHelper, ICsvParser csvParser, ISettingsManager settingsManager) { Connection = connection; _webRequst = webRequst; _fileSystemsHelper = fileSystemHelper; _csvParser = csvParser; _settingsManager = settingsManager; ResolveDownloadDirectory(); }
public void SetUpBase() { this.FileSystemHelper = MockRepository.GenerateStub<IFileSystemHelper>(); this.DynamicSourceProvider = MockRepository.GenerateStub<IDynamicSourceProvider>(); this.ConfigurationRepository = MockRepository.GenerateMock<IConfigurationRepository>(); this.ConfigurationRepository.Stub(r => r.Get(Arg<string>.Is.Anything)) .Return(new Configuration()); this.ContentFinder = new ContentFinder(this.FileSystemHelper, this.DynamicSourceProvider, this.ConfigurationRepository); }
public void Initialize() { _directory = Substitute.For<IDirectory>(); _file = Substitute.For<IFile>(); _path = Substitute.For<IPath>(); _imageComparer = Substitute.For<IImageComparer>(); _fileSystemHelper = Substitute.For<IFileSystemHelper>(); _dialog = Substitute.For<IDialog>(); _renameOperation = Substitute.For<IRenameOperation>(); _path.SetPathDefaultBehavior(); _target = new PruneOperation(_directory, _file, _path, _imageComparer, _fileSystemHelper, _dialog, _renameOperation); }
public void TestInitialize() { _graphHopperHelper = Substitute.For<IGraphHopperHelper>(); _remoteFileFetcherGateway = Substitute.For<IRemoteFileFetcherGateway>(); var factory = Substitute.For<IHttpGatewayFactory>(); factory.CreateRemoteFileFetcherGateway(Arg.Any<TokenAndSecret>()).Returns(_remoteFileFetcherGateway); _remoteFileSizeFetcherGateway = Substitute.For<IRemoteFileSizeFetcherGateway>(); _fileSystemHelper = Substitute.For<IFileSystemHelper>(); _elasticSearchGateway = Substitute.For<IElasticSearchGateway>(); _elasticSearchHelper = Substitute.For<INssmHelper>(); _osmRepository = Substitute.For<IOsmRepository>(); _osmGeoJsonPreprocessor = Substitute.For<IOsmGeoJsonPreprocessor>(); _osmDataService = new OsmDataService(_graphHopperHelper, factory, _remoteFileSizeFetcherGateway, _fileSystemHelper, _elasticSearchGateway, _elasticSearchHelper, _osmRepository, _osmGeoJsonPreprocessor, Substitute.For<ILogger>()); }
static void Main(string[] args) { LoggerServiceFactory.SetLoggerService(Log4NetLoggerService.Instance); //this is optional - DefaultLoggerService will be used if not set Logger = LoggerServiceFactory.GetLogger(typeof(SparkCLRSamples)); Configuration = CommandlineArgumentProcessor.ProcessArugments(args); PrintLogLocation(); bool status = true; if (Configuration.IsDryrun) { status = SamplesRunner.RunSamples(); } else { SparkContext = CreateSparkContext(); if (string.IsNullOrEmpty(Configuration.CheckpointDir)) { Configuration.CheckpointDir = Path.GetTempPath(); } ConsoleWriteLine("Set checkpoint directory to: " + Configuration.CheckpointDir); SparkContext.SetCheckpointDir(Configuration.CheckpointDir); if (!string.IsNullOrEmpty(Configuration.SampleDataLocation) && (Configuration.SampleDataLocation.ToLower().StartsWith("hdfs://") || Configuration.SampleDataLocation.ToLower().StartsWith("webhdfs://"))) { FileSystemHelper = new HdfsFileSystemHelper(); } else { FileSystemHelper = new LocalFileSystemHelper(); } status = SamplesRunner.RunSamples(); PrintLogLocation(); ConsoleWriteLine("Completed running samples. Calling SparkContext.Stop() to tear down ..."); //following comment is necessary due to known issue in Spark. See https://issues.apache.org/jira/browse/SPARK-8333 ConsoleWriteLine("If this program (SparkCLRSamples.exe) does not terminate in 10 seconds, please manually terminate java process launched by this program!!!"); //TODO - add instructions to terminate java process SparkContext.Stop(); } if (Configuration.IsValidationEnabled && !status) { Environment.Exit(1); } }
/// <summary> /// Initializes a new instance of the <see cref="SelfMediaDatabase.Core.Operations.Tags.TagsOperation"/> class. /// </summary> /// <param name="fileSystemHelper">Helper for file system access.</param> /// <param name="directory">Injection wrapper of <see cref="System.IO.Directory"/>.</param> /// <param name="file">Injection wrapper of <see cref="System.IO.File"/>.</param> /// <param name="path">Injection wrapper of <see cref="System.IO.Path"/>.</param> /// <param name="tagHelper">Helper to access to tags of media files.</param> public TagsOperation(IFileSystemHelper fileSystemHelper, IFile file, IPath path, ITagHelper tagHelper) { if (fileSystemHelper == null) throw new ArgumentNullException("fileSystemHelper"); if (file == null) throw new ArgumentNullException("file"); if (path == null) throw new ArgumentNullException("path"); if (tagHelper == null) throw new ArgumentNullException("exifHelper"); _fileSystemHelper = fileSystemHelper; _file = file; _tagHelper = tagHelper; _path = path; }
/// <summary> /// Initializes a new instance of the <see cref="SelfMediaDatabase.Core.Operations.Rename.RenameOperation"/> class. /// </summary> /// <param name="fileSystemHelper">Helper for file system access.</param> /// <param name="file">Injection wrapper of <see cref="System.IO.File"/>.</param> /// <param name="path">Injection wrapper of <see cref="System.IO.Path"/>.</param> /// <param name="dialog">Dialog service to show dialogs.</param> public RenameOperation(IFileSystemHelper fileSystemHelper, IFile file, IPath path, IDialog dialog) { if (fileSystemHelper == null) throw new ArgumentNullException("fileSystemHelper"); if (file == null) throw new ArgumentNullException("file"); if (path == null) throw new ArgumentNullException("path"); if (dialog == null) throw new ArgumentNullException("dialog"); _fileSystemHelper = fileSystemHelper; _file = file; _path = path; _dialog = dialog; _scopeAnswer = DialogAnswer.None; }
/// <summary> /// Initializes a new instance of the <see cref="SelfMediaDatabase.Core.Operations.Classify.ClassifyOperation"/> class. /// </summary> /// <param name="path">Path.</param> /// <param name="file">File.</param> /// <param name="directory">Directory.</param> /// <param name="fileSystemHelper">File system helper.</param> public ClassifyOperation(IPath path, IFile file, IDirectory directory, IFileSystemHelper fileSystemHelper, IGeolocationHelper geolocationHelper) { if (path == null) throw new ArgumentNullException("path"); if (file == null) throw new ArgumentNullException("file"); if (directory == null) throw new ArgumentNullException("directory"); if (fileSystemHelper == null) throw new ArgumentNullException("fileSystemHelper"); if (geolocationHelper == null) throw new ArgumentNullException("geolocationHelper"); _path = path; _file = file; _directory = directory; _fileSystemHelper = fileSystemHelper; _geolocationHelper = geolocationHelper; }
/// <summary> /// Creates a new instance of the <see cref="FileWriter"/> class. /// </summary> /// <param name="arguments"> /// Specifies the arguments for this writer. /// </param> /// <param name="fileSystemHelper"> /// Specifies the helper for /// </param> public FileWriter(IArguments arguments, IFileSystemHelper fileSystemHelper) { _arguments = arguments; _fileSystemHelper = fileSystemHelper; }
public FileConverterFactory(IFileSystemHelper fileSystemHelper) { _fileSystemHelper = fileSystemHelper; }
static void Main(string[] args) { ContainerBuilder builder = new ContainerBuilder(); ConfigureContainer(builder); IContainer container = builder.Build(); IFileSystemHelper fileSystemHelper = container.Resolve <IFileSystemHelper>(); ILogger <Program> logger = container.Resolve <ILogger <Program> >(); Console.WriteLine("**********************************************************"); Console.WriteLine("* Vhd Native Boot Os Migrator by Przemysław Łukawski *"); Console.WriteLine("**********************************************************"); logger.LogDebug("Vhd Native Boot Os Migrator has started."); DisplayUsage(); ParseArguments(args); MigrationFlowData migrationData = BuildMigrationData(operationMode, fileSystemHelper, addToBootManager); DisplaySummary(migrationData, logger); if (!quiet) { Console.Write("Are the above information ok (Y/N)?"); ConsoleKeyInfo answer = Console.ReadKey(); if (answer.Key != ConsoleKey.Y) { return; } Console.WriteLine(); } container.Dispose(); builder = new ContainerBuilder(); ConfigureContainer(builder); builder.RegisterInstance(migrationData); //register migrationDate container = builder.Build(); //rebuild container to contain migrationData DependencyResolverAccessor.Container = container; MigratorEngine engine = container.Resolve <MigratorEngine>(); string[] messages; bool checkResult = engine.CheckPrerequisities(out messages); if (checkResult) { engine.PerformMigration(); } else { Console.WriteLine("Cannot continue because of the following checks failed:"); foreach (string message in messages) { Console.WriteLine(message); } } if (!quiet) { Console.WriteLine("Press any key to exit."); Console.ReadKey(); } }
protected override void OnCreate(Bundle savedInstanceState) { AndroidApplication = Application as AndroidApplication; AndroidApplication.Logger.Debug(() => "MainActivity:OnCreate"); base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); DriveInfoProvider = AndroidApplication.IocContainer.Resolve <IDriveInfoProvider>(); FileSystemHelper = AndroidApplication.IocContainer.Resolve <IFileSystemHelper>(); PreferencesProvider = AndroidApplication.IocContainer.Resolve <IPreferencesProvider>(); ControlFileUri = PreferencesProvider.GetPreferenceString(ApplicationContext.GetString(Resource.String.prefs_control_uri_key), ""); AndroidApplication.Logger.Debug(() => $"MainActivity:OnCreate Conrol Uri = {ControlFileUri}"); // Set our view from the "main" layout resource SetContentView(Resource.Layout.activity_main); // Get our UI controls from the loaded layout List <string> envirnment = WindowsEnvironmentInformationProvider.GetEnvironmentRuntimeDisplayInformation(); StringBuilder builder = new StringBuilder(); builder.AppendLine(AndroidApplication.DisplayVersion); foreach (string line in envirnment) { builder.AppendLine(line); } SetTextViewText(Resource.Id.txtVersions, builder.ToString()); builder.Clear(); builder.AppendLine($"Personal Folder = {System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal)}"); builder.AppendLine($"AppData Folder = {System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData)}"); builder.AppendLine($"CommonAppData Folder = {System.Environment.GetFolderPath(System.Environment.SpecialFolder.CommonApplicationData)}"); Java.IO.File[] files = ApplicationContext.GetExternalFilesDirs(null); foreach (Java.IO.File file in files) { builder.AppendLine($"ExternalFile = {file.AbsolutePath}"); OverrideRoot = file.AbsolutePath; } builder.AppendLine($"Podcasts Folder = {Android.OS.Environment.GetExternalStoragePublicDirectory(Android.OS.Environment.DirectoryPodcasts).AbsolutePath}"); SetTextViewText(Resource.Id.txtAppStorage, builder.ToString()); ProgressSpinner = FindViewById <ProgressSpinnerView>(Resource.Id.progressBar); Button btnLoad = FindViewById <Button>(Resource.Id.btnLoadConfig); btnLoad.Click += (sender, e) => LoadConfig(); Button btnFind = FindViewById <Button>(Resource.Id.btnFindPodcasts); // works btnFind.Click += (sender, e) => Task.Run(() => FindEpisodesToDownload()); // crash - java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() //btnFind.Click += async (sender, e) => await Task.Run(() => FindEpisodesToDownload()); // blocks UI thread //btnFind.Click += async (sender, e) => FindEpisodesToDownload(); Button btnSetRoot = FindViewById <Button>(Resource.Id.btnSetRoot); btnSetRoot.Click += (sender, e) => SetRoot(); Button btnDownload = FindViewById <Button>(Resource.Id.btnDownload); btnDownload.Click += (sender, e) => Task.Run(() => Download()); bool isReadonly = Android.OS.Environment.MediaMountedReadOnly.Equals(Android.OS.Environment.ExternalStorageState); bool isWriteable = Android.OS.Environment.MediaMounted.Equals(Android.OS.Environment.ExternalStorageState); if (!string.IsNullOrEmpty(ControlFileUri)) { try { // TODO - we need to ask permission if the file has been edited by another app Android.Net.Uri uri = Android.Net.Uri.Parse(ControlFileUri); AndroidApplication.ControlFile = OpenControlFile(uri); } catch (Exception ex) { AndroidApplication.Logger.LogException(() => $"MainActivity: OnCreate", ex); SetTextViewText(Resource.Id.txtConfigFilePath, $"Error {ex.Message}"); } } }
internal NUnitRunner(IExecutable executable, IFileSystemHelper fileSystemHelper) { _executable = executable; _fileSystemHelper = fileSystemHelper; _argumentBuilder = new ArgumentBuilder("/", ":"); }
public void SetUp() { _fileSystemHelper = MockRepository.GenerateStub <IFileSystemHelper>(); _subject = new ZipCompress(_fileSystemHelper); }
public FulfilmentAncillaryFiles(ILogger <FulfilmentAncillaryFiles> logger, IOptions <FileShareServiceConfiguration> fileShareServiceConfig, IFileSystemHelper fileSystemHelper) { this.logger = logger; this.fileShareServiceConfig = fileShareServiceConfig; this.fileSystemHelper = fileSystemHelper; }
/// <summary> /// 初始化文件系统管理器的新实例。 /// </summary> public FileSystemManager() { m_FileSystems = new Dictionary <string, FileSystem>(StringComparer.Ordinal); m_FileSystemHelper = null; }
public FolderRule(string relativePath, CheckType checkType, IFileSystemHelper fileSystemHelper) : base(relativePath, checkType, fileSystemHelper) { }
public RemoveRedundantThisQualifierRule(IncludeExcludeCollection sourceFileFilters, IFileSystemHelper fileSystemHelper, string fileNamePattern = "*.cs", bool isBackupEnabled = true) : base(sourceFileFilters, fileSystemHelper, fileNamePattern, isBackupEnabled) { }
public RawFloatPCMFileConverter(string path, IFileSystemHelper fileSystemHelper) { _path = path; _fileSystemHelper = fileSystemHelper; }
internal ILMerge(IFileSystemHelper fileSystemHelper) { _fileSystemHelper = fileSystemHelper; Sources = new List <string>(); _argumentBuilder = new ArgumentBuilder(); }
/// <summary> /// Constructor /// </summary> /// <param name="fileSystemHelper"></param> public BootstrapFontAwesomeDirectoryFormatter(IFileSystemHelper fileSystemHelper) { _fileSystemHelper = fileSystemHelper; }
public GitScm(IFileSystemHelper filesystemhelper, IContext context) { this.FileSystemHelper = filesystemhelper; this.context = context; }
private static MigrationFlowData BuildMigrationData(OperationModeEnum operationMode, IFileSystemHelper fileSystemHelper, bool addToBootManager) { MigrationFlowData migrationData = new MigrationFlowData(); IDriveInfo systemDriveInfo = fileSystemHelper.GetSystemDriveInfo(); migrationData.OperatingSystemDriveLetter = systemDriveInfo.Name.First(); migrationData.TemporaryVhdFileMaxSize = systemDriveInfo.TotalSize + (200 << 20) /*200MB*/; migrationData.VhdFileName = "VHDNBOM_System_Image.vhdx"; migrationData.VhdFileType = Logic.Models.Enums.VhdType.VhdxDynamic; migrationData.VhdFileTemporaryFolder = vhdTemporaryFolderPath ?? fileSystemHelper.FindBestLocationForVhdTemporaryFolder(); migrationData.AddVhdToBootManager = addToBootManager; if (operationMode == OperationModeEnum.MigrateCurrentOsToVhd) { migrationData.DeleteTemporaryVhdFile = true; migrationData.DestinationVhdMaxFileSize = (systemDriveInfo.AvailableFreeSpace - Constants.FiveGigs + Constants.OneGig) + (200 << 20); migrationData.DesiredTempVhdShrinkSize = (systemDriveInfo.TotalSize - (systemDriveInfo.AvailableFreeSpace - Constants.FiveGigs)); migrationData.VhdFileDestinationFolder = $"{migrationData.OperatingSystemDriveLetter}:\\VHD_Boot"; } return(migrationData); }
public ContentFinder(IFileSystemHelper fileSystemHelper, IDynamicSourceProvider dynamicSourceProvider, IConfigurationRepository configurationRepository) { this.fileSystemHelper = fileSystemHelper; this.dynamicSourceProvider = dynamicSourceProvider; this.configurationRepository = configurationRepository; }