本文整理汇总了C#中IWorkItem.GetInvalidWorkItemFieldsList方法的典型用法代码示例。如果您正苦于以下问题:C# IWorkItem.GetInvalidWorkItemFieldsList方法的具体用法?C# IWorkItem.GetInvalidWorkItemFieldsList怎么用?C# IWorkItem.GetInvalidWorkItemFieldsList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IWorkItem
的用法示例。
在下文中一共展示了IWorkItem.GetInvalidWorkItemFieldsList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Saving
public void Saving(IWorkItem workItem, bool isValid)
{
this.logger.Log(
LogLevel.Verbose,
"{0} [{1}] {2} valid to save.",
workItem.TypeName,
workItem.Id,
isValid ? "is" : "is NOT");
if (!isValid)
{
this.logger.Log(
LogLevel.Verbose,
"Invalid fields: {0}",
workItem.GetInvalidWorkItemFieldsList());
}
}
示例2: WorkItemIsInvalidInState
public void WorkItemIsInvalidInState(IWorkItem workItem, string destState)
{
this.logger.Log(
LogLevel.Warning,
"WorkItem is invalid in '{0}' state. Invalid fields: {1}",
destState,
workItem.GetInvalidWorkItemFieldsList());
}
示例3: Saving
public void Saving(IWorkItem workItem, bool isValid, bool shouldLimit)
{
this.logger.Log(
LogLevel.Verbose,
"{0} [{1}] {2} valid to save.",
workItem.TypeName,
workItem.Id,
isValid ? "is" : "is NOT");
if (!isValid)
{
this.logger.Log(
LogLevel.Verbose,
"Invalid fields: {0}",
workItem.GetInvalidWorkItemFieldsList());
}
if (shouldLimit)
{
this.logger.Log(
LogLevel.Warning,
"{0} [{1}] NOT SAVED. Rate limiter in effect.",
workItem.TypeName,
workItem.Id);
}
}