/// <summary> /// Create a web application using the given location and port number. /// </summary> /// <param name="location">The location of the web application</param> /// <param name="portNumber">The port number the web application will be deployed to</param> public WebApplication(IProjectLocation location, int portNumber) { Argument.CheckIfNull(location, "IProjectLocation"); Argument.CheckIntIfNullOrValue(portNumber, 1, "PortNumber"); Location = location; PortNumber = portNumber; }
public WebApplication(IProjectLocation location, int portNumber) { Guard.Against(location == null, "You must specify a location"); Guard.Against(portNumber <= 0, "portNumber must be greater than zero"); Location = location; PortNumber = portNumber; }
/// <summary> /// Create a web application using the given location and port number. /// </summary> /// <param name="location">The location of the web application</param> /// <param name="portNumber">The port number the web application will be deployed to</param> public WebApplication(IProjectLocation location, int portNumber) { Argument.CheckIfNull(location,"IProjectLocation"); Argument.CheckIntIfNullOrValue(portNumber,1,"PortNumber"); Location = location; PortNumber = portNumber; }
/// <summary> /// Create a web application using the given location and port number. /// </summary> /// <param name="location">The location of the web application</param> /// <param name="portNumber">The port number the web application will be deployed to</param> public WebApplication(IProjectLocation location, int portNumber) { if (location == null) throw new ArgumentNullException("location", "You must specify a location"); if (portNumber <= 0) throw new ArgumentOutOfRangeException("portNumber", portNumber, "portNumber must be greater than zero"); Location = location; PortNumber = portNumber; }
/// <summary> /// Create a web application using the given location and port number. /// </summary> /// <param name="location">The location of the web application</param> /// <param name="portNumber">The port number the web application will be deployed to</param> public WebApplication(IProjectLocation location, int portNumber) { if (location == null) throw new ArgumentNullException("location", "You must specify a location"); if (portNumber <= 0) throw new ArgumentOutOfRangeException("portNumber", portNumber, "portNumber must be greater than zero"); Location = location; PortNumber = portNumber; EnvironmentVariables = new Dictionary<string, string>(); }
/// <summary> /// Create a web application using the given location and port number. /// </summary> /// <param name="location">The location of the web application</param> /// <param name="portNumber">The port number the web application will be deployed to</param> public WebApplication(IProjectLocation location, int portNumber) { if (location == null) { throw new ArgumentNullException("location", "You must specify a location"); } if (portNumber <= 0) { throw new ArgumentOutOfRangeException("portNumber", portNumber, "portNumber must be greater than zero"); } Location = location; PortNumber = portNumber; }
/// <summary> /// Create a web application using the given location and port number. /// </summary> /// <param name="location">The location of the web application</param> /// <param name="portNumber">The port number the web application will be deployed to</param> public WebApplication(IProjectLocation location, int portNumber) { if (location == null) { throw new ArgumentNullException(nameof(location), "You must specify a location"); } if (portNumber <= 0) { throw new ArgumentOutOfRangeException(nameof(portNumber), portNumber, "portNumber must be greater than zero"); } Location = location; PortNumber = portNumber; EnvironmentVariables = new Dictionary <string, string>(); }
public ProjectPropertyOccurrence(string value, [CanBeNull] IProjectPropertyCondition condition, IProjectLocation location) { Value = value; Condition = condition; Location = location; }
public MsBuildDeployer(IProjectLocation projectLocation) { _projectLocation = projectLocation; }