예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DeployResourceTask"/> class.
        /// </summary>
        /// <param name="resource">The resource to deploy.</param>
        public DeployResourceTask(Resource resource)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }

            Resource = resource;
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ExecuteScriptTask"/> class.
        /// </summary>
        /// <param name="resource">The resource.</param>
        /// <param name="scriptPath">The path to the scripts folder.</param>
        public ExecuteScriptTask(Resource resource, string scriptPath)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }

            Resource = resource;
            ScriptPath = scriptPath;
        }