Skip to content

Commit

Permalink
Merge pull request #18 from osstotalsoft/feature/contravariance
Browse files Browse the repository at this point in the history
pipeline contravariance
  • Loading branch information
lghinet authored Jul 12, 2019
2 parents fc72e1b + f6db517 commit 18482a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Core/NBB.Core.Pipeline/IPipelineMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace NBB.Core.Pipeline
/// A middleware for a pipeline that processes data/context of type <typeparamref name="T"/>
/// </summary>
/// <typeparam name="T">The type of data/context processed in the pipeline</typeparam>
public interface IPipelineMiddleware<T>
public interface IPipelineMiddleware<in T>
{
/// <summary>
/// Perform processing for the current <paramref name="data"/> next middleware data.
Expand Down
2 changes: 1 addition & 1 deletion src/Core/NBB.Core.Pipeline/PipelineDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ namespace NBB.Core.Pipeline
/// <typeparam name="T">The type of data/context processed in the pipeline.</typeparam>
/// <param name="data">The data/context used as input in the pipeline.</param>
/// <param name="cancellationToken">The cancellation token.</param>
public delegate Task PipelineDelegate<T>(T data, CancellationToken cancellationToken);
public delegate Task PipelineDelegate<in T>(T data, CancellationToken cancellationToken);
}

0 comments on commit 18482a5

Please sign in to comment.