tasks++
This commit is contained in:
parent
d4ae765bb5
commit
7c2c2621f0
7 changed files with 41 additions and 1 deletions
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
|
namespace Yavsc.Models
|
||||||
{
|
{
|
||||||
public interface IRequisition
|
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
|
public interface ITaskRunner
|
||||||
{
|
{
|
||||||
Task Run(string [] args);
|
IExecutionData Run( ITaskMetaData taskMetaData, string [] args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue