I searched a lot before putting the questions here but the more I search the more confused I get.
So I have created an handler and I am trying to get the route like
I had a similar issue, but was able to get the route inside the message handler by the following:
request.GetConfiguration().Routes.GetRouteData(request).Route.RouteTemplate;