Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Team Foundation Server 2015 Customization

You're reading from  Team Foundation Server 2015 Customization

Product type Book
Published in Oct 2015
Publisher
ISBN-13 9781785888199
Pages 208 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Gordon Beeming Gordon Beeming
Profile icon Gordon Beeming

Table of Contents (17) Chapters

Team Foundation Server 2015 Customization
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Creating a Dashboard and a Welcome Page 2. Streamlining Your Teams' Boards 3. Customizing Your Process Template 4. Enhanced Work Item Forms with Field Custom Controls 5. The Guide Standards for Check-in Policies 6. Enforcing Standards with Server-Side Plugins 7. Customizing the TFS Build 8. Creating TFS Scheduled Jobs 9. Service Hooks 10. VSO Extensions Index

Writing the TFS job


So, as mentioned, we are going to need a class that inherits from ITeamFoundationJobExtension.

Let's create a class called TfsCommentsToChangeSetLinksJob and inherit from ITeamFoundationJobExtension. As part of this, we will need to implement the Run method, which is part of an interface, like this:

public class TfsCommentsToChangeSetLinksJob : ITeamFoundationJobExtension
{
  public TeamFoundationJobExecutionResult Run(
      TeamFoundationRequestContext requestContext,
      TeamFoundationJobDefinition jobDefinition,
      DateTime queueTime, out string resultMessage)
  {
    throw new NotImplementedException();
  }
}

Then, we also add the using statement:

using Microsoft.TeamFoundation.Framework.Server;

Now, for this specific extension, we'll need to add references to the following:

  • Microsoft.TeamFoundation.Client.dll

  • Microsoft.TeamFoundation.VersionControl.Client.dll

  • Microsoft.TeamFoundation.WorkItemTracking.Client.dll

All of these can be found in C:\Program Files\Microsoft...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}