本文介绍了当我点击团队基础服务器2012上的checkin项目时,如何在TFS上挂钩checkin事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我问一个问题。我想在Visual Studio 2012上单击Team Foundation Server 2012时勾选checkin事件以查找已更改的源代码。请帮助我?
此致。
Mansurİşçel
Hi,
I ask a question please. I want to hook checkin event for changed source code in file when clicked checkin on Team Foundation Server 2012 on Visual Studio 2012. Kindly, can you help me ?
Sincerely.
Mansur İşçel
推荐答案
The solution consists of a .NET Class that implements the Microsoft.TeamFoundation.Framework.Server. ISubscriber interface:
public interface ISubscriber
{
string Name { get; }
SubscriberPriority Priority { get; }
EventNotificationStatus ProcessEvent(TeamFoundationRequestContext requestContext, NotificationType notificationType, object notificationEventArgs, out int statusCode, out string statusMessage, out ExceptionPropertyCollection properties);
Type[] SubscribedTypes();
}
您可以在以下链接中找到完整的参考:
[]
[]
这篇关于当我点击团队基础服务器2012上的checkin项目时,如何在TFS上挂钩checkin事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!