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)); }
private bool ExistsBehaviour(Type[] contractGenericArgs, IDependencyEngine engine) { var behaviourType = typeof(ICommandBehaviour <>).MakeGenericType(contractGenericArgs); return(engine.Contains(behaviourType)); }