ETW stands for Event Tracing for Windows. Simply put, ETW tracking means our ability to see tracking information in the famous Event Viewer.
Create a Workflow Console Application project:
Create a new Workflow Console Application project and name it
ConfiguringETWTracking
. Name the solution asChapter06
.Author a workflow:
Open the
Workflow1.xaml
file, which is created by default, and create an extremely simple workflow just for tracking.Enable ETW tracking:
Open Event Viewer, navigate to Event Viewer | Applications and Services Logs | Microsoft | Windows | Application Server-Applications. Right-click Application Server-Applications and select View | Show Analytic and Debug Logs. After refreshing the node, we should see:
Create a workflow host:
Open
Program.cs
file, and fill the file with the following code:using System.Activities.Tracking; using...