I have created an Event to catch server side events in TFS 2013. I can catch when workitems are updated, email sent etc... What I need to capture is when a new Team is added or Team is updated.
Is there an event to subscribe to when a Team is added? Here is code to catch events.
public class TeamCreationCatcher : ISubscriber { public Type[] SubscribedTypes() { return new Type[3] { typeof(Microsoft.TeamFoundation.WorkItemTracking.Server.WorkItemsChangedNotification), typeof(Microsoft.TeamFoundation.WorkItemTracking.Server.WorkItemChangedEvent), typeof(SendEmailNotification) }; } public EventNotificationStatus ProcessEvent(TeamFoundationRequestContext requestContext, NotificationType notificationType, object notificationEventArgs, out int statusCode, out string statusMessage, out ExceptionPropertyCollection properties) { statusCode = 0; properties = null; statusMessage = String.Empty; if (notificationType == NotificationType.Notification && notificationEventArgs is TeamCreationCatcher) { } return EventNotificationStatus.ActionPermitted; } public string Name { get { return "TeamCreationCatcher"; } } public SubscriberPriority Priority { get { return SubscriberPriority.Normal; } set { ; } } }