mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Moving timers to its own feature
This commit is contained in:
@@ -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;
|
||||
|
@@ -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; }
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user