Import POP3 content: Create the task

To create a task, perform the following:

  1. Open Sitefinity CMS Project Manager.
  2. Select your Sitefinity CMS project.
  3. Click Edit in Visual Studio.
  4. From the context menu of the project, click Add » New Item...
  5. In the left pane, select Visual C# » Code.
  6. Click Class.
  7. In the Name input field, enter PipeScheduledTask.cs.
  8. Open the newly created file.
  9. Add the following code:

In the code above, ExecuteTask method you get the feed from the publishing system and execute it. You must also set the TaskName to reflect the full class name so that the system can properly instantiate the task from the factory and execute it at a specified point. Once the task is executed you must invoke the scheduling manager and queue a new task of the same type.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?