我写了一个小应用程序,尝试订阅各种事件,但是找不到真正好的解释或所有不同事件类型的列表。有人知道他们是什么吗?例如,到目前为止,我有这些:

var eventService = this.projectCollection.GetService(typeof(IEventService)) as IEventService;
this.subscriptions.Add(eventService.SubscribeEvent("WorkItemChangedEvent", "", delPref));
this.subscriptions.Add(eventService.SubscribeEvent("BuildCompletionEvent", "", delPref));

任何帮助,不胜感激。

最佳答案

不确定是否对该事件有一个正式的概述,但是在收集数据库中检查“tbl_EventType”列出了以下事件:

  • BranchMovedEvent
  • DataChangedEvent
  • NodeCreatedEvent
  • NodePropertiesChangedEvent
  • NodeRenamedEvent
  • NodesDeletedEvent
  • ProjectCreatedEvent
  • ProjectDeletedEvent
  • CheckinEvent
  • ShelvesetEvent
  • BuildCompletedEvent
  • BuildCompletionEvent
  • BuildCompletionEvent2
  • BuildDefinitionChangedEvent
  • BuildDefinitionUpgradeCompletionEvent
  • BuildResourceChangedEvent
  • BuildStatusChangeEvent
  • WITAdapterSchemaConflictEvent
  • WorkItemChangedEvent
  • TestRunCompletedEvent
  • TestRunStartedEvent
  • CodeReviewChangedEvent
  • 10-05 22:37