You can define and create custom background task handlers to manage ad-hoc and specific implementations of standard or custom events.
Best Practices Following advised best practices when creating new background task handler will allow you to get the best out of your customization.
Creating a background task handler in C# This example shows how to create a custom background task handler to implement specific ways to process standard and custom events.