Darek
Darek

Reputation: 4797

What is the full list of TFS 2010 EventTypes?

I wrote a small app which attempts to subscribe to various events, but can't find a really good explanation or list of all the different event types. Does anyone know what they are? For example, so far I have these:

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

Any help much appreciated.

Upvotes: 2

Views: 992

Answers (3)

Ibrahim Abdulkarim
Ibrahim Abdulkarim

Reputation: 478

can i use all the listed event types to be used in a custom tfs plugin using the ISubscriber interface ? in particular the ProjectCreatedEvent

Upvotes: 1

Jonathan
Jonathan

Reputation: 7551

BuildCompletionEvent belong to the Microsoft.TeamFoundation.Build.Server Namespace. In there you'll find all the classes - search for 'Event'.

You can do similar searches for WorkItemChangedEvent and other classes of events.

Upvotes: 0

MikeR
MikeR

Reputation: 3075

Not sure if there is an official overview of the event, but checking "tbl_EventType" in the collection database listed the following events:

  1. BranchMovedEvent
  2. DataChangedEvent
  3. NodeCreatedEvent
  4. NodePropertiesChangedEvent
  5. NodeRenamedEvent
  6. NodesDeletedEvent
  7. ProjectCreatedEvent
  8. ProjectDeletedEvent
  9. CheckinEvent
  10. ShelvesetEvent
  11. BuildCompletedEvent
  12. BuildCompletionEvent
  13. BuildCompletionEvent2
  14. BuildDefinitionChangedEvent
  15. BuildDefinitionUpgradeCompletionEvent
  16. BuildResourceChangedEvent
  17. BuildStatusChangeEvent
  18. WITAdapterSchemaConflictEvent
  19. WorkItemChangedEvent
  20. TestRunCompletedEvent
  21. TestRunStartedEvent
  22. CodeReviewChangedEvent

Upvotes: 6

Related Questions