Guest User

Untitled

a guest
Feb 19th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using Telerik.Sitefinity.Abstractions;
  6. using Telerik.Sitefinity.RecycleBin.ScheduledTasks;
  7.  
  8. namespace SitefinityWebApp
  9. {
  10. public class SchedulePermanentDelete
  11. {
  12. public void SchedulePermanentDeleteRB()
  13. {
  14. IPermanentDeleteTaskService permanentDeleteTaskService = ObjectFactory.Container.Resolve<IPermanentDeleteTaskService>();
  15. permanentDeleteTaskService.DeleteAllTasks();
  16. permanentDeleteTaskService.CreateTasksForAllRecycleBinItems();
  17.  
  18. }
  19. }
  20. }
Add Comment
Please, Sign In to add comment