public DirectoryProjectInitializer(IConfigurationService configurationService, IStartUpInfoProvider startUpInfoProvider) { Argument.IsNotNull(() => configurationService); Argument.IsNotNull(() => startUpInfoProvider); _configurationService = configurationService; _startUpInfoProvider = startUpInfoProvider; }
/// <summary> /// Gets the command line as a string and quotes the values with a space. /// </summary> /// <param name="startUpInfoProvider">The start up information provider.</param> /// <returns>The command line as string.</returns> /// <exception cref="ArgumentNullException">The <paramref name="startUpInfoProvider"/> is <c>null</c>.</exception> public static string GetCommandLine(this IStartUpInfoProvider startUpInfoProvider) { Argument.IsNotNull(() => startUpInfoProvider); var commandLine = string.Join(" ", startUpInfoProvider.Arguments.Select(x => x.TrimStart().IndexOfAny(ReplaceableCharacters) > 0 ? string.Format("\"{0}\"", x) : x)); return(commandLine); }
public InitialProjectLocationService(IConfigurationService configurationService, IStartUpInfoProvider startUpInfoProvider, IFileService fileService, IDirectoryService directoryService, ICommandLineParser commandLineParser) { Argument.IsNotNull(() => configurationService); Argument.IsNotNull(() => startUpInfoProvider); Argument.IsNotNull(() => fileService); Argument.IsNotNull(() => directoryService); Argument.IsNotNull(() => commandLineParser); _configurationService = configurationService; _startUpInfoProvider = startUpInfoProvider; _fileService = fileService; _directoryService = directoryService; _commandLineParser = commandLineParser; }
public FileProjectInitializer(IStartUpInfoProvider startUpInfoProvider) { Argument.IsNotNull(() => startUpInfoProvider); _startUpInfoProvider = startUpInfoProvider; }