I am trying to list all the controllers and their actions with specific attributes to create a dynamic google sitemap. So that I can "mark" certain actions with an attribute so they show up in the sitemap.
Here I found out how to get all the controllers. But I am not sure how to get all their Actions with a particular attribute. I tried GetMethods and then use GetCustomAttributes but I am not sure if that's the right way to do it. It felt a little over complicated.
Once I get the controllers and their actions I was going to use the technique explained here to get the urls. As you may notice Eric Duncan talks about what I am trying to accomplish in that question.
Thanks in advance.