Class ClearServiceCachesScheduledTaskAddIn
- Namespace
- Dynamicweb.Scheduling.ScheduledTaskAddIns
- Assembly
- Dynamicweb.Core.dll
Scheduled task add-in that clears the selected service caches, the same caches an integration activity can clear after it has run.
[AddInName("ClearServiceCachesAddIn")]
[AddInLabel("Clear service caches")]
[AddInDescription("Clears the selected service caches")]
public sealed class ClearServiceCachesScheduledTaskAddIn : BaseScheduledTaskAddIn, IParameterOptions
- Inheritance
-
ClearServiceCachesScheduledTaskAddIn
- Implements
- Inherited Members
Properties
ServiceCaches
Gets or sets the comma-separated full type names of the cache owners to clear.
[AddInParameter("ServiceCaches")]
[AddInLabel("Service caches")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "multiple=true;")]
public string ServiceCaches { get; set; }
Property Value
Methods
Run()
Clears the selected service caches.
public override bool Run()
Returns
Remarks
Writes one summary line to the task log, plus one line for each cache that could not be cleared.