Skip to content

Commit b5f894e

Browse files
committed
Rename Controller to Chain.
1 parent 330cb45 commit b5f894e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SimpleChain/Controller.cs renamed to SimpleChain/Chain.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
namespace SimpleChain;
22

3-
/// <inheritdoc cref="IController{TInput, TOutput}" />
3+
/// <inheritdoc cref="IChain{TInput, TOutput}" />
44
/// <typeparam name="TProcessor">Interface for processors to be used. Recommended to be derived from <see cref="IProcessor{T}"/>.</typeparam>
5-
public class Controller<TProcessor, TInput, TOutput> : IController<TInput, TOutput> where TProcessor : IProcessor<TInput, TOutput>
5+
public class Chain<TProcessor, TInput, TOutput> : IChain<TInput, TOutput> where TProcessor : IProcessor<TInput, TOutput>
66
{
77
private readonly IEnumerable<TProcessor> processors;
88

9-
public Controller(IEnumerable<TProcessor> processors) {
9+
public Chain(IEnumerable<TProcessor> processors) {
1010
this.processors = processors;
1111
}
1212

SimpleChain/IController.cs renamed to SimpleChain/IChain.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/// Orchestrator of the chain of responsibility.
55
/// </summary>
66
/// <typeparam name="TInput">Object containing inputs to processors.</typeparam>
7-
public interface IController<TInput, TOutput>
7+
public interface IChain<TInput, TOutput>
88
{
99
/// <summary>
1010
/// Execute the chain of processors with given input. The input is passed to each processor's

0 commit comments

Comments
 (0)