1
私は、サーバー側のTFSでいくつかのチェックインポリシーを実装するプロジェクトに取り組んでいます。その一環として、私はコミットされているチェンジセットの履歴を取得しようとしています。しかし、チェックインが起こると、チェンジセット番号は-1になります。私はなぜこのことが起こっているのか知りません。変更セット番号がProcessEventメソッドが実行された後にのみ割り当てられるかどうかは疑問です。あなたの助けに感謝。TFSチェックインイベントをタップ
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.DecisionPoint)
{
try
{
if (notificationEventArgs is CheckinNotification)
{
CheckinNotification notification = notificationEventArgs as CheckinNotification;
int changeId = notification.Changeset;; // here I get the Changeset as -1
}
}
}
}
返信いただきありがとうございます。 – Jaleel