Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="WebJobRunIdentifier"/> class with the values provided.
        /// </summary>
        /// <param name="websiteName">The website name.</param>
        /// <param name="jobType">The job type.</param>
        /// <param name="jobName">The job name.</param>
        /// <param name="runId">The job run ID.</param>
        public WebJobRunIdentifier(string websiteName, WebJobTypes jobType, string jobName, string runId)
        {
            if (jobType == WebJobTypes.Triggered && runId == null)
            {
                throw new ArgumentNullException("runId", "runId is required for triggered jobs.");
            }

            WebSiteName = websiteName;
            JobType     = jobType;
            JobName     = jobName;
            RunId       = runId;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="WebJobRunIdentifier"/> class with the values provided.
        /// </summary>
        /// <param name="websiteName">The website name.</param>
        /// <param name="jobType">The job type.</param>
        /// <param name="jobName">The job name.</param>
        /// <param name="runId">The job run ID.</param>
        public WebJobRunIdentifier(string websiteName, WebJobTypes jobType, string jobName, string runId)
        {
            if (jobType == WebJobTypes.Triggered && runId == null)
            {
                throw new ArgumentNullException("runId", "runId is required for triggered jobs.");
            }

            WebSiteName = websiteName;
            JobType = jobType;
            JobName = jobName;
            RunId = runId;
        }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebJobRunIdentifier"/> class with the values provided.
 /// </summary>
 /// <param name="jobType">The job type.</param>
 /// <param name="jobName">The job name.</param>
 /// <param name="runId">The job run ID.</param>
 public WebJobRunIdentifier(WebJobTypes jobType, string jobName, string runId)
     : this(Environment.GetEnvironmentVariable(WebSitesKnownKeyNames.WebSiteNameKey), jobType, jobName, runId)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WebJobRunIdentifier"/> class with the values provided.
 /// </summary>
 /// <param name="jobType">The job type.</param>
 /// <param name="jobName">The job name.</param>
 /// <param name="runId">The job run ID.</param>
 public WebJobRunIdentifier(WebJobTypes jobType, string jobName, string runId)
     : this(Environment.GetEnvironmentVariable(WebSitesKnownKeyNames.WebSiteNameKey), jobType, jobName, runId)
 {
 }
Esempio n. 5
0
 internal WebJobRunIdentifierViewModel(WebJobTypes jobType, string jobName, string jobRunId)
 {
     JobType = jobType;
     JobName = jobName;
     RunId   = jobRunId;
 }