Sub SubscribeToJobs( _ ByVal jobIds As List(Of String) _ )
void SubscribeToJobs( List<string> jobIds )
Parameters
- jobIds
- The ids of the jobs to subscribe to
Sub SubscribeToJobs( _ ByVal jobIds As List(Of String) _ )
void SubscribeToJobs( List<string> jobIds )
{
// Subscribe to the job message event to start receiving job and step notifications.
// Use the subscription token to unsubscribe from the event.
subscriptionToken = JobMessageEvent.Subscribe(e =>
{
var jobId = e.Message.JobId;
var msgType = e.MessageType;
var message = e.Message;
// Include logic to process the job / step messages
});
// Subscribe to certain jobs. This will add these jobIds to the list of already subscribed jobs.
var notifManager = WorkflowClientModule.NotificationManager;
notifManager.SubscribeToJobs(jobIds);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)