嘿,你如何在类似以下情况中获取发出请求的人的IP地址:
[ServiceContract]
[AspNetCompatibilityRequirements(RequirementsMode =
AspNetCompatibilityRequirementsMode.Required)]
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
public partial class UsersService
{
[WebInvoke(UriTemplate = "", Method = "PUT")]
public User AddNewUser(User newUser)
{
// code goes here including GETTING AN IP??
}
谢谢!