tasks++
This commit is contained in:
17
Yavsc.Abstract/Workflow/Tasks/IExecutionData.cs
Normal file
17
Yavsc.Abstract/Workflow/Tasks/IExecutionData.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Yavsc.Abstract.Workflow
|
||||
{
|
||||
public interface IExecutionData
|
||||
{
|
||||
Task Payload { get; }
|
||||
|
||||
ITaskMetaData MetaData { get; }
|
||||
|
||||
string [] Args { get; }
|
||||
IList<IMayBeFixable> Faults { get; }
|
||||
|
||||
}
|
||||
}
|
9
Yavsc.Abstract/Workflow/Tasks/IMayBeFixable.cs
Normal file
9
Yavsc.Abstract/Workflow/Tasks/IMayBeFixable.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace Yavsc.Abstract.Workflow
|
||||
{
|
||||
public interface IMayBeFixable
|
||||
{
|
||||
bool Fixable { get; }
|
||||
|
||||
void TryAndFix();
|
||||
}
|
||||
}
|
@ -1,4 +1,7 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
using Yavsc.Abstract.Workflow;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public interface IRequisition
|
11
Yavsc.Abstract/Workflow/Tasks/ITaskMetaData.cs
Normal file
11
Yavsc.Abstract/Workflow/Tasks/ITaskMetaData.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using Yavsc.Models;
|
||||
|
||||
namespace Yavsc.Abstract.Workflow
|
||||
{
|
||||
public interface ITaskMetaData
|
||||
{
|
||||
string TaskName { get; }
|
||||
IEnumerable <IRequisition> Prerequisites { get; }
|
||||
}
|
||||
}
|
@ -4,6 +4,6 @@ namespace Yavsc.Abstract.Workflow
|
||||
{
|
||||
public interface ITaskRunner
|
||||
{
|
||||
Task Run(string [] args);
|
||||
IExecutionData Run( ITaskMetaData taskMetaData, string [] args);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user