Book Publish: Windows Workflow Foundation 4.5: Developer Guide

I have been an author for various sites for a long time. I used to write about various technologies.

This time I have taken the challenge to publish one Book on Windows Workflow Foundation(WF) 4.5. I have published the 30% completed book in LeanPub and planning to complete the same by next two weeks time. I will writing about my experience in using the WF framework and implementing various aspects of the same.

This book will be a quick reference for the developer to implement a specific concept in WF.

Title: Windows Workflow Foundation 4.5: Developer Guide



Posted in General, WF, WF4 | Tagged , , | Leave a comment

Customizing Team Foundation Server 2013: Work Items and Custom Controls

Team Foundation Server (TFS) manages the entire application life-cycle using underlying process templates. TFS provides, off the shelf, three built-in process templates for managing the general execution of a project. There are also several community-developed templates available that can be integrated to TFS. If you need more than this, you can develop templates to handle specific aspects of the workflow that supports your application development process.

Topics covered in this article are

  • Develop New Process Template
  • Work Item Customization
    • Customization using WitAdmin Command
    • Process Editor
    • Custom Work Item
    • Custom Fields    
    • Custom Workflow
  • Custom Work Item Control Development
    • Web Access Control
      • Create New Web Access Control – HTML Control
      • Create New Web Access Control – Based on TFS Core Control
    • Fallback mechanism        
    • Visual studio Control      
      • Create Custom Control  
      • Create wicc file
      • Package and Deploy      
      • Verify the new Custom Control
  • Access Control  
    • Access Control at Field Level      
    • Access Control at Workflow level              

Please refer the article at

Posted in Microsoft, TFS | Tagged , , | Leave a comment

AD Authentication for a cloud solution

Corporate users prefer to use the corporate identity to access their applications irrespective of the hosting platform. With the increase in cloud adoption, many of the applications moved from on-premises to cloud with different access right implementations. Active Directory Federation Services (ADFS) implementation resolved the issue for certain level.

New Azure based AD along with Directory allow the user to work seamlessly across different cloud solutions like Office 365, Visual Studio Online, Azure, and so on.

Ad Authentication for a cloud solution

Ad Authentication for a cloud solution

Directory integration can be set up in different ways

  1. Directory Sync: synchronize on-premises directory objects to cloud. Users will use different user name and password to access resources in cloud and on-premises
  2. Directory Sync with Password Sync: directory object along with password will be synchronized to cloud based AD. Users will use the same credentials to access the resources in cloud as well as in on-premises
  3. Directory Sync with Single Sign-On: Set up a security token service like ADFS in on-premises. This will allow the user to use the AD corporate credential to access resources in cloud and on-premises

There are many directory integration tools available like Azure Active Directory Synchronization tool (DirSync), Azure Active Directory Synchronization Services (AAD Sync) and Forefront Identity Manager 2010 R2. AAD Connect is a single tool, which help the entire process of directory sync. This tool is in public preview release now.


Posted in Azure, Visual Studio | Tagged , , | Leave a comment

TFS 2013 Work Item Custom Controls

TFS provides set of controls to customize the work items like Bug, testcase, and so on. Built-in controls are limited in number and functionality and often require new controls to support the project or organization specific requirements.

TFS provides lot of extensibility points to develop new custom controls for web access and Visual Studio. I have published set of custom controls which can address the common requirements of TFS work item customization to GitHub. Currently the collection consists of three web access controls and one Visual Studio control. I will be adding new controls to the collection.

Please refer the collection at

Please let me know your suggestion of improvements and also new generic control requirements.

Posted in General | Tagged | Leave a comment

Smart Unit Test for Smart Developers

One of my nightmare on development of new application is the creation of unit tests which cover all the code paths and provide a code coverage of more than 98%. Creation of unit tests matching all code paths and binding the same with proper test data occupy most of our time. This may not be the case with those who use unit test frameworks instead of using Visual Studio. As a Microsoft technology lover, it is hard for me to switch to any other unit test platform.

Now, MS is addressing my pain point by introducing the Smart Unit Test as part of Visual Studio 2015. Smart Unit test feature explores the .NET code and generate test data along with set of unit tests. Smart Unit Test perform a case analysis on each statement to generate unit tests, which provide maximum code coverage.

Creation of smart unit test as simple as opening a class file, right click on the method for which you need to generate the unit test and select Smart Unit Tests option from context menu. This will generate set of unit tests along with test data. We can save the unit tests and test data as a regression suit for future regression testing.

Smart Unit for Smart Developers

Smart Unit for Smart Developers

Posted in Visual Studio 2015 | Tagged , | 2 Comments