简单的问题:
在下面的代码中,如何知道某些请求/调用是否来自本地主机?
事实上有可能吗?
谢谢!!
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = ConcurrencyMode.Multiple, UseSynchronizationContext = false)]
public class Service2 : IService2
{
public void DoWork()
{
// Is this the localhost ?
}
}