Ejemplo n.º 1
0
        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;
 }
Ejemplo n.º 3
0
        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
            };
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
 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;
 }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
0
 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;
 }
Ejemplo n.º 9
0
            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);
            }
Ejemplo n.º 10
0
 public iOSDatabaseBuilder(IApplicationPathBuilder pathBuilder, IFileManipulator fileManipulator, ILogger logger) : base(pathBuilder, fileManipulator, logger)
 {
 }
Ejemplo n.º 11
0
 public FileStream(IFileManipulator fileManipulator, string fullFileName) : this(fullFileName)
 {
     this.FileManipulator = fileManipulator;
 }