Skip to content

Commit ca0479a

Browse files
committed
* Pipeline events added to interface
* Conveyor events added to interface
1 parent 1c9c594 commit ca0479a

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

src/Simplify.Pipelines/Processing/IPipeline{T}.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,23 @@ namespace Simplify.Pipelines.Processing
44
/// Represent pipeline
55
/// </summary>
66
/// <typeparam name="T"></typeparam>
7-
public interface IPipeline<in T>
7+
public interface IPipeline<T>
88
{
9+
/// <summary>
10+
/// Occurs when pipeline is about to execute.
11+
/// </summary>
12+
event PipelineAction<T> OnPipelineStart;
13+
14+
/// <summary>
15+
/// Occurs when pipeline has finished it's execution.
16+
/// </summary>
17+
event PipelineAction<T> OnPipelineEnd;
18+
19+
/// <summary>
20+
/// Occurs when pipeline stage has finished it's execution.
21+
/// </summary>
22+
event PipelineStageAction<T> OnStageExecuted;
23+
924
/// <summary>
1025
/// Process item through pipeline.
1126
/// </summary>

src/Simplify.Pipelines/ProductionLine/IConveyor{T}.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,18 @@
44
/// Represent conveyor
55
/// </summary>
66
/// <typeparam name="T">Conveyor item type</typeparam>
7-
public interface IConveyor<in T>
7+
public interface IConveyor<T>
88
{
9+
/// <summary>
10+
/// Occurs when conveyor is about to execute.
11+
/// </summary>
12+
event ConveyorAction<T> OnConveyorStart;
13+
14+
/// <summary>
15+
/// Occurs when conveyor stage has finished it's execution.
16+
/// </summary>
17+
event ConveyorStageAction<T> OnStageExecuted;
18+
919
/// <summary>
1020
/// Executes the specified item thru conveyor.
1121
/// </summary>

src/Simplify.Pipelines/Simplify.Pipelines.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
<Product>Simplify</Product>
66
<Description>Pipelines processing, validation patterns</Description>
77
<Copyright>Licensed under LGPL</Copyright>
8-
<Version>0.6</Version>
8+
<Version>0.7</Version>
99
<PackageProjectUrl>https://github.com/SimplifyNet/Simplify</PackageProjectUrl>
1010
<PackageIconUrl>https://raw.githubusercontent.com/SimplifyNet/Images/master/Logo.png</PackageIconUrl>
1111
<RepositoryUrl>https://github.com/SimplifyNet/Simplify/tree/master/src/Simplify.Pipelines</RepositoryUrl>
1212
<RepositoryType>GIT</RepositoryType>
1313
<PackageTags>.NET pipelines</PackageTags>
1414
<PackageReleaseNotes>
1515
New
16-
* Pipeline events
17-
* Conveyor events
16+
* Pipeline events added to interface
17+
* Conveyor events added to interface
1818
</PackageReleaseNotes>
1919
<OutputPath>bin\Any CPU\$(Configuration)\</OutputPath>
2020
<DocumentationFile>bin\Any CPU\$(Configuration)\$(TargetFramework)\Simplify.Pipelines.xml</DocumentationFile>

0 commit comments

Comments
 (0)