static bool IsConsumerOrDefinition(Type type) { return(TypeMetadataCache.HasConsumerInterfaces(type) && !TypeMetadataCache.HasSagaInterfaces(type) || type.HasInterface(typeof(IConsumerDefinition <>))); }