-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
36 additions
and
37 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
Examples/Example1/CompnentBased/Channels.cs → Examples/Example1/ComponentBased/Channels.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Example1/CompnentBased/ISomeDataAccess.cs → ...xample1/ComponentBased/ISomeDataAccess.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...es/Example1/CompnentBased/ISomeService.cs → ...s/Example1/ComponentBased/ISomeService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Examples/Example1/CompnentBased/Payload.cs → Examples/Example1/ComponentBased/Payload.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using Fibrous; | ||
using Fibrous.Pipelines; | ||
|
||
namespace Example1.ComponentBased; | ||
|
||
public class Stage2 : IProcessor<Payload, Payload> | ||
{ | ||
private readonly ISomeDataAccess _dal; | ||
|
||
public Stage2(ISomeDataAccess service) | ||
{ | ||
_dal = service; | ||
} | ||
|
||
public event Action<Payload> Output; | ||
public event Action<Exception> Exception; | ||
|
||
public void Process(Payload input) | ||
{ | ||
//Do some other things and save to a database | ||
_dal.SaveData(input); | ||
Output?.Invoke(input); | ||
} | ||
|
||
public void Initialize(IScheduler scheduler) | ||
{ | ||
//If we don't need scheduling for this stage, leave empty | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters