@@ -19,6 +19,7 @@ public static void AddExpressionEngine(this IServiceCollection services)
1919 AddStringFunctions ( services ) ;
2020 AddCollectionFunction ( services ) ;
2121 AddConversionFunction ( services ) ;
22+ AddLogicalComparisonFunctions ( services ) ;
2223
2324 services . AddTransient < IFunction , LengthFunction > ( ) ;
2425 services . AddTransient < IFunction , GreaterFunction > ( ) ;
@@ -68,5 +69,18 @@ private static void AddConversionFunction(IServiceCollection services)
6869 services . AddTransient < IFunction , DataUriFunction > ( ) ;
6970 services . AddTransient < IFunction , DataUriToBinaryFunction > ( ) ;
7071 }
72+
73+ private static void AddLogicalComparisonFunctions ( IServiceCollection services )
74+ {
75+ services . AddTransient < IFunction , AndFunction > ( ) ;
76+ services . AddTransient < IFunction , EqualFunction > ( ) ;
77+ services . AddTransient < IFunction , GreaterFunction > ( ) ;
78+ services . AddTransient < IFunction , GreaterOrEqualsFunction > ( ) ;
79+ services . AddTransient < IFunction , IfFunction > ( ) ;
80+ services . AddTransient < IFunction , LessFunction > ( ) ;
81+ services . AddTransient < IFunction , LessOrEqualsFunction > ( ) ;
82+ services . AddTransient < IFunction , NotFunction > ( ) ;
83+ services . AddTransient < IFunction , OrFunction > ( ) ;
84+ }
7185 }
7286}
0 commit comments