/// <summary>
 /// Initializes a new instance of the <see cref="JobConnectionArgument"/> class.
 /// </summary>
 /// <param name="jobConnection">
 /// The parameter.
 /// </param>
 public JobConnectionArgument(JobConnection jobConnection)
 {
     Condition.Requires <JobConnection>(jobConnection).IsNotNull <JobConnection>("The job connection cannot be null.");
     Condition.Requires <string>(jobConnection.Name).IsNotNullOrEmpty("The job connection name cannot be null or empty.");
     Condition.Requires <string>(jobConnection.Type).IsNotNullOrEmpty("The job connection type cannot be null or empty.");
     this.JobConnection = jobConnection;
 }
 /// <inheritdoc />
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Plugin.NishTech.IntegrationFramework.JobConnectionArgument" /> class.
 /// </summary>
 /// <param name="jobConnection"></param>
 /// <param name="name"></param>
 public AddJobArgument(JobConnection jobConnection, string name) : base(jobConnection)
 {
     Condition.Requires <string>(name).IsNotNullOrEmpty("The job name can not be null or empty");
     this.Name        = name;
     this.Description = string.Empty;
     this.DisplayName = string.Empty;
 }
Пример #3
0
 public JobInfoArgument(JobConnection jobConnection, Job job, JobInstance jobInstance)
 {
     this.JobConnection = jobConnection;
     this.Job           = job;
     this.JobInstance   = jobInstance;
 }