Moving timers to its own feature

This commit is contained in:
Sebastien Ros
2014-04-17 15:37:24 -07:00
parent 995806bdde
commit dfb87793e1
3 changed files with 9 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using Orchard.ContentManagement;
using Orchard.Data;
using Orchard.Environment.Extensions;
using Orchard.Forms.Services;
using Orchard.Localization;
using Orchard.Services;
@@ -11,6 +12,7 @@ using Orchard.Workflows.Models;
using Orchard.Workflows.Services;
namespace Orchard.Workflows.Activities {
[OrchardFeature("Orchard.Workflows.Timer")]
public class TimerActivity : Event {
private readonly IClock _clock;
@@ -101,6 +103,7 @@ namespace Orchard.Workflows.Activities {
}
}
[OrchardFeature("Orchard.Workflows.Timer")]
public class TimerBackgroundTask : IBackgroundTask {
private readonly IContentManager _contentManager;
private readonly IWorkflowManager _workflowManager;

View File

@@ -1,10 +1,12 @@
using System;
using System.Web.Mvc;
using Orchard.DisplayManagement;
using Orchard.Environment.Extensions;
using Orchard.Forms.Services;
using Orchard.Localization;
namespace Orchard.Workflows.Forms {
[OrchardFeature("Orchard.Workflows.Timer")]
public class ScheduleForms : IFormProvider {
protected dynamic Shape { get; set; }
public Localizer T { get; set; }

View File

@@ -9,4 +9,7 @@ Description: Provides tools to create custom workflows.
Features:
Orchard.Workflows:
Description: Provides tools to create custom workflows.
Dependencies: Orchard.Tokens, Orchard.Forms, Orchard.jQuery
Dependencies: Orchard.Tokens, Orchard.Forms, Orchard.jQuery
Orchard.Workflows.Timer:
Description: Provides a Timer activity.
Dependencies: Orchard.Workflows