mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 18:37:18 +02:00
21 lines
665 B
C#
21 lines
665 B
C#
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>;
|
|
}
|
|
} |