add Job Tasks to enable the execution of adhoc asynchronous site-based workloads
This commit is contained in:
13
Oqtane.Server/Infrastructure/Interfaces/IJobTask.cs
Normal file
13
Oqtane.Server/Infrastructure/Interfaces/IJobTask.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Infrastructure
|
||||
{
|
||||
public interface IJobTask
|
||||
{
|
||||
string ExecuteTask(IServiceProvider provider, Site site, string parameters);
|
||||
|
||||
Task<string> ExecuteTaskAsync(IServiceProvider provider, Site site, string parameters);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user