internal AppDataStore(IAppNameProvider appNameProvider, IDirectoryManipulator directoryManipulator, IFileManipulator fileManipulator) { _appPath = Path.Combine(directoryManipulator.AppDataPath, appNameProvider.AppName); _fileManipulator = fileManipulator; directoryManipulator.CreateDirectory(_appPath); }
public DirectoryObserver( IFileReader fileReader, IJsonConverter <ConfigInfo> jsonConverter, IFileManipulator fileManipulator) { this.fileReader = fileReader; this.jsonConverter = jsonConverter; this.fileManipulator = fileManipulator; }
public FileWatcher(string path, string filter, NotifyFilters notifyFilter, IFileManipulator manipulator) { this.Path = path; this.Filter = filter; this.NotifyFilter = notifyFilter; manipulator.CreateFolder(this.Path); this._watcher = new FileSystemWatcher(this.Path, this.Filter) { NotifyFilter = this.NotifyFilter }; }
public FileHandler(string mailToSendFP, string invalidMailFP, IFileWatcher watcher, IFileManipulator manipulator, IFileSender sender, ILog logger) { this.MailToSendFP = mailToSendFP; this.InvalidMailFP = invalidMailFP; this._fileWatcher = watcher; this._manipulator = manipulator; this._fileSender = sender; this._logger = logger; this._manipulator.CreateFolder(this.MailToSendFP); this._manipulator.CreateFolder(this.InvalidMailFP); }
public MetaGeneratorProjectPluginGenerator( IConsoleWriter consoleWriter, IFileGenerator fileGenerator, IFileManipulator fileManipulator, IUserInputProvider userInputProvider, IVariableProvider variableProvider) { _consoleWriter = consoleWriter; _fileGenerator = fileGenerator; _fileManipulator = fileManipulator; _userInputProvider = userInputProvider; _variableProvider = variableProvider; }
public ManagedWrapperProjectsPluginGenerator( IConsoleWriter consoleWriter, IFileGenerator fileGenerator, IFileManipulator fileManipulator, IUserInputProvider userInputProvider, IVariableProvider variableProvider, IPathProvider pathProvider, ITools tools) { _consoleWriter = consoleWriter; _fileGenerator = fileGenerator; _fileManipulator = fileManipulator; _userInputProvider = userInputProvider; _variableProvider = variableProvider; _pathProvider = pathProvider; _tools = tools; }
public ProjectGenerator(IProjectDirectoryProvider projectDirectoryProvider, IDirectoryManipulator directoryManipulator, IFileManipulator fileManipulator, ISolutionTemplateProvider solutionTemplateProvider, IGitClient gitClient, IGitApiClient gitApiClient, ILogger logger, string projectType ) { _directoryManipulator = directoryManipulator; _fileManipulator = fileManipulator; _solutionTemplateProvider = solutionTemplateProvider; _gitClient = gitClient; _gitApiClient = gitApiClient; _logger = logger; _projectType = projectType; _solutionDirectory = projectDirectoryProvider.SolutionDirectory; }
public NativeProjectsPluginGenerator( IConsoleWriter consoleWriter, IFileGenerator fileGenerator, IFileManipulator fileManipulator, IUserInputProvider userInputProvider, IVariableProvider variableProvider, IProjectInformation projectInformation, ITfsPaths tfsPaths, ITools tools) { _consoleWriter = consoleWriter; _fileGenerator = fileGenerator; _fileManipulator = fileManipulator; _userInputProvider = userInputProvider; _variableProvider = variableProvider; _projectInformation = projectInformation; _tfsPaths = tfsPaths; _tools = tools; }
public FileStream(string fullFileName, FileMode fileMode, FileAccess fileAccess, FileShare fileShare, bool incrementFileName = true) { if (incrementFileName) { FileName = FileNameIncrementor(fullFileName); } else { FileName = fullFileName; } if (this.FileManipulator == null) { this.FileManipulator = FileManipulatorFactory.GetManipulator(this.LocationType); } this.Stream = FileManipulator.Open(fullFileName); FileType = Path.GetExtension(fullFileName); }
public iOSDatabaseBuilder(IApplicationPathBuilder pathBuilder, IFileManipulator fileManipulator, ILogger logger) : base(pathBuilder, fileManipulator, logger) { }
public FileStream(IFileManipulator fileManipulator, string fullFileName) : this(fullFileName) { this.FileManipulator = fileManipulator; }