views:

183

answers:

2

Is it possible to get the originating port from an ActionExecutingContext object? If so, how?

A: 

ActionExecutionContext.HttpContextBase.Url.Port should work for you.

MrJavaGuy
+1  A: 

Yes, look at ActionExecutingContext.HttpContext.Request.Url.Port;

Craig Stuntz
Thx a bunch. I tend to overlook the obvious :P
borisCallens