//提供方法执行的上下文环境
            OperationContext context = OperationContext.Current;
            //获取传进的消息属性
            MessageProperties properties = context.IncomingMessageProperties;
            //获取消息发送的远程终结点IP和端口
            RemoteEndpointMessageProperty endpoint = properties[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty;
            Logger.WriteLog("请求来直哪里:" + endpoint.Address);

 

相关文章:

  • 2022-12-23
  • 2021-11-30
  • 2022-02-16
  • 2021-08-27
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2021-12-05
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案