示例#1
0
        private bool ExistsPreOrPostProcessor(Type[] contractGenericArgs, IDependencyEngine engine)
        {
            var preProcessorType = typeof(ICommandPreProcessor <>).MakeGenericType(contractGenericArgs);

            if (engine.Contains(preProcessorType))
            {
                return(true);
            }

            var postProcessorType = typeof(ICommandPostProcessor <>).MakeGenericType(contractGenericArgs);

            return(engine.Contains(postProcessorType));
        }
示例#2
0
        private bool ExistsBehaviour(Type[] contractGenericArgs, IDependencyEngine engine)
        {
            var behaviourType = typeof(ICommandBehaviour <>).MakeGenericType(contractGenericArgs);

            return(engine.Contains(behaviourType));
        }