Disco.Services.JobQueueExtensions.OnEditAddedComment C# (CSharp) Method

OnEditAddedComment() public static method

public static OnEditAddedComment ( this jqj, string AddedComment ) : void
jqj this
AddedComment string
return void
        public static void OnEditAddedComment(this JobQueueJob jqj, string AddedComment)
        {
            if (!jqj.CanEditAddedComment())
                throw new InvalidOperationException("Editing job added comments for this queue is denied");

            jqj.AddedComment = string.IsNullOrWhiteSpace(AddedComment) ? null : AddedComment.Trim();
        }
        public static void OnEditRemovedComment(this JobQueueJob jqj, string RemovedComment)