internal GetDefaultScaffolderCmdlet(ISolutionManager solutionManager, IVsPackageManagerFactory packageManagerFactory, IScaffoldingConfigStore configStore) : base(solutionManager, packageManagerFactory, null) { _configStore = new Lazy<IScaffoldingConfigStore>(() => { return configStore ?? new XmlScaffoldingConfigStore(SolutionManager); }); }
public Ps1ScaffolderLocator(IPowershellCommandInvoker commandInvoker, IPackageManager packageManager, IPackagePathResolver pathResolver, FileSystem.IFileSystem fileSystem, IScaffoldingConfigStore configStore) { _commandInvoker = commandInvoker; _packageManager = packageManager; _pathResolver = pathResolver ?? packageManager.PathResolver; _fileSystem = fileSystem; _configStore = configStore; }
internal SetDefaultScaffolderCmdlet(ISolutionManager solutionManager, IVsPackageManagerFactory packageManagerFactory, IScaffoldingConfigStore configStore, IScaffolderLocator scaffolderLocator) : base(solutionManager, packageManagerFactory, null) { _configStore = new Lazy<IScaffoldingConfigStore>(() => { return configStore ?? new XmlScaffoldingConfigStore(SolutionManager); }); // Can't read the value of CommandInvoker until *after* the constructor finishes, hence lazy _scaffolderLocator = new Lazy<IScaffolderLocator>( () => scaffolderLocator ?? new Ps1ScaffolderLocator(CommandInvoker, PackageManager, null, new DefaultFileSystem(), _configStore.Value) ); }
internal GetDefaultScaffolderCmdlet(ISolutionManager solutionManager, IVsPackageManagerFactory packageManagerFactory, IScaffoldingConfigStore configStore) : base(solutionManager, packageManagerFactory, null) { _configStore = new Lazy <IScaffoldingConfigStore>(() => { return(configStore ?? new XmlScaffoldingConfigStore(SolutionManager)); }); }
internal SetDefaultScaffolderCmdlet(ISolutionManager solutionManager, IVsPackageManagerFactory packageManagerFactory, IScaffoldingConfigStore configStore, IScaffolderLocator scaffolderLocator) : base(solutionManager, packageManagerFactory, null) { _configStore = new Lazy <IScaffoldingConfigStore>(() => { return(configStore ?? new XmlScaffoldingConfigStore(SolutionManager)); }); // Can't read the value of CommandInvoker until *after* the constructor finishes, hence lazy _scaffolderLocator = new Lazy <IScaffolderLocator>( () => scaffolderLocator ?? new Ps1ScaffolderLocator(CommandInvoker, PackageManager, null, new DefaultFileSystem(), _configStore.Value) ); }