Skip to content

Commit

Permalink
Fixed example spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisa23 committed Jan 24, 2024
1 parent 2a01e7f commit 0bfd382
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 37 deletions.
31 changes: 0 additions & 31 deletions Examples/Example1/CompnentBased/Stage2.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Fibrous;

namespace Example1.CompnentBased
namespace Example1.ComponentBased
{
public class Channels
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Example1.CompnentBased
namespace Example1.ComponentBased
{
public interface ISomeDataAccess
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Example1.CompnentBased
namespace Example1.ComponentBased
{
public interface ISomeService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace Example1.CompnentBased
namespace Example1.ComponentBased
{
public class Payload
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Fibrous;
using Fibrous.Pipelines;

namespace Example1.CompnentBased
namespace Example1.ComponentBased
{
public class Stage1 : IProcessor<Payload, Payload>
{
Expand Down
30 changes: 30 additions & 0 deletions Examples/Example1/ComponentBased/Stage2.cs
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
}
}
2 changes: 1 addition & 1 deletion Examples/Example1/PipelineExample.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.IO;
using Example1.CompnentBased;
using Example1.ComponentBased;
using Fibrous;
using Fibrous.Pipelines;

Expand Down

0 comments on commit 0bfd382

Please sign in to comment.