mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-24 03:40:07 +02:00
Operations pipeline start
This commit is contained in:
1 parent
6c10c6c654
commit
7ffbeb6b17
19 files changed
+432
-5
No files matched your search
@@ -0,0 +1,21 @@
|
||||
namespace WotBlitzStatisticsPro.Logic.Pipeline
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents operation pipeline
|
||||
/// </summary>
|
||||
public interface IPipeline<TContext>
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds the pipeline.
|
||||
/// </summary>
|
||||
/// <returns>First operation in pipeline.</returns>
|
||||
IOperation<TContext> Build();
|
||||
|
||||
/// <summary>
|
||||
/// Adds operation type to the pipeline
|
||||
/// </summary>
|
||||
/// <typeparam name="TOperation">Operation type</typeparam>
|
||||
/// <returns>Pipeline instance</returns>
|
||||
IPipeline<TContext> AddOperation<TOperation>() where TOperation : IOperation<TContext>;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user