Beispiel #1
0
        public JobActivity(Job job, string operation, ReferenceActivity referenceActivity = null)
        {
            InitiateActivity(job, operation);

            this.Reference = referenceActivity;
            this.ByUser    = new ReferenceUser(job.JobServedBy);
        }
Beispiel #2
0
        public JobActivity(Job job, string operation, string path, ReferenceActivity referenceActivity = null) : this(job, operation, referenceActivity)
        {
            if (path == null)
            {
                throw new ArgumentNullException(nameof(path));
            }

            this.Path = path;
        }
Beispiel #3
0
        public JobActivity(Job job, string operation, ReferenceUser byUser, ReferenceActivity referenceActivity = null)
        {
            InitiateActivity(job, operation);

            if (byUser == null)
            {
                throw new ArgumentNullException(nameof(byUser));
            }

            this.Reference = referenceActivity;
            this.ByUser    = byUser;
        }