Get source port from ActionExecutingContext?

Can I get the source port from the ActionExecutingContext object? If so, how?

+1


source to share


3 answers


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



+4


source


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



0


source


use this: context.HttpContext.Request.Path OR context.HttpContext.Request.PathBase

0


source







All Articles