//提供方法执行的上下文环境
            OperationContext context = OperationContext.Current;
            //获取传进的消息属性
            MessageProperties properties = context.IncomingMessageProperties;
            //获取消息发送的远程终结点IP和端口
            RemoteEndpointMessageProperty endpoint = properties[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty;

 

相关文章:

  • 2022-12-23
  • 2022-01-23
  • 2021-09-04
  • 2021-10-02
猜你喜欢
  • 2021-11-06
  • 2022-12-23
  • 2021-09-29
  • 2021-08-01
  • 2022-12-23
  • 2021-08-30
相关资源
相似解决方案