Find out if request from localhost in Global.Asax

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-05-21T21:56:04Z Indexed on 2010/05/21 22:00 UTC
Read the original article Hit count: 249

Hello,

HttpContext.Current.Request.IsLocal is not available in Global.Asax (Request is not available in the context).

How else could I safely determine if my ASP.NET MVC application is started locally or not?

Thank you!

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET