예제 #1
0
        public JobActivity(Job job, string operation, string path, ReferenceUser byUser, ReferenceActivity referenceActivity = null) : this(job, operation, byUser, referenceActivity)
        {
            if (path == null)
            {
                throw new ArgumentNullException(nameof(path));
            }

            this.Path = path;
        }
예제 #2
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;
        }