Skip to content

Commit

Permalink
Added generic ConventionContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
david-driscoll committed Mar 24, 2018
1 parent a1b4820 commit ea15625
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion src/Conventions.Abstractions/Scanners/IConventionContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,31 @@ public interface IConventionContainer
/// <param name="convention">The convention</param>
void AppendConvention(IConvention convention);
}
}

public interface IConventionContainer<out TBuilder, in TConvention, in TDelegate>
{
/// <summary>
/// Add a delegate to the scanner, that runs before scanning.
/// </summary>
/// <param name="delegate">The delegate</param>
TBuilder PrependDelegate(TDelegate @delegate);

/// <summary>
/// Adds a convention to the scanner, that runs before scanning.
/// </summary>
/// <param name="convention">The convention</param>
TBuilder PrependConvention(TConvention convention);

/// <summary>
/// Add a delegate to the scanner, that runs after scanning.
/// </summary>
/// <param name="delegate">The delegate</param>
TBuilder AppendDelegate(TDelegate @delegate);

/// <summary>
/// Adds a convention to the scanner, that runs after scanning.
/// </summary>
/// <param name="convention">The convention</param>
TBuilder AppendConvention(TConvention convention);
}
}

0 comments on commit ea15625

Please sign in to comment.