Question

I'd like to occasionally map new routes to the RouteCollection during program execution long after the Global.asax RegisterRoutes() method had first executed.

How can I do this?

Was it helpful?

Solution

It's possible, but the route collection is shared state in a multi-threaded app, so you have to get a lock. There's an example here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top