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

OnEditRemovedComment() public static method

public static OnEditRemovedComment ( this jqj, string RemovedComment ) : void
jqj this
RemovedComment string
return void
        public static void OnEditRemovedComment(this JobQueueJob jqj, string RemovedComment)
        {
            if (!jqj.CanEditRemovedComment())
                throw new InvalidOperationException("Editing job removed comments for this queue is denied");

            jqj.RemovedComment = string.IsNullOrWhiteSpace(RemovedComment) ? null : RemovedComment.Trim();
        }
        #endregion