Quantcast
Channel: Team Foundation Server - General forum
Viewing all articles
Browse latest Browse all 6687

Server Side Event to capture Team creation and updating in TFS 2013?

$
0
0

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 { ; }
        }
    }




Viewing all articles
Browse latest Browse all 6687

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>