From ea15625fd23dafa910f585650b930f78d87f6304 Mon Sep 17 00:00:00 2001 From: David Driscoll Date: Sat, 24 Mar 2018 13:22:19 -0400 Subject: [PATCH] Added generic ConventionContainer --- .../Scanners/IConventionContainer.cs | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/Conventions.Abstractions/Scanners/IConventionContainer.cs b/src/Conventions.Abstractions/Scanners/IConventionContainer.cs index be930e4e6..fdf850ea6 100644 --- a/src/Conventions.Abstractions/Scanners/IConventionContainer.cs +++ b/src/Conventions.Abstractions/Scanners/IConventionContainer.cs @@ -28,4 +28,31 @@ public interface IConventionContainer /// The convention void AppendConvention(IConvention convention); } -} \ No newline at end of file + + public interface IConventionContainer + { + /// + /// Add a delegate to the scanner, that runs before scanning. + /// + /// The delegate + TBuilder PrependDelegate(TDelegate @delegate); + + /// + /// Adds a convention to the scanner, that runs before scanning. + /// + /// The convention + TBuilder PrependConvention(TConvention convention); + + /// + /// Add a delegate to the scanner, that runs after scanning. + /// + /// The delegate + TBuilder AppendDelegate(TDelegate @delegate); + + /// + /// Adds a convention to the scanner, that runs after scanning. + /// + /// The convention + TBuilder AppendConvention(TConvention convention); + } +}