This commit is contained in:
2018-04-14 10:58:16 +02:00
parent 8846d5b1ce
commit 3d0aab280b
7 changed files with 41 additions and 1 deletions

View 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; }
}
}

View File

@ -0,0 +1,9 @@
namespace Yavsc.Abstract.Workflow
{
public interface IMayBeFixable
{
bool Fixable { get; }
void TryAndFix();
}
}

View File

@ -1,4 +1,7 @@
using System.Collections.Generic;
using Yavsc.Abstract.Workflow;
namespace Yavsc.Models
{
public interface IRequisition

View 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; }
}
}

View File

@ -4,6 +4,6 @@ namespace Yavsc.Abstract.Workflow
{
public interface ITaskRunner
{
Task Run(string [] args);
IExecutionData Run( ITaskMetaData taskMetaData, string [] args);
}
}