开发者

WCF: how do I get client connection parameters on server-side?

开发者 https://www.devze.com 2023-03-19 00:18 出处:网络
I have WCF Service (tcp/ip connection point) and would like to know from method implementations client parameters (ip, port: as many as possible)开发者_Go百科.

I have WCF Service (tcp/ip connection point) and would like to know from method implementations client parameters (ip, port: as many as possible)开发者_Go百科.

class MyService : IMyService
{
  void Callme() 
  {
     How-To-Get-Client-Connection-Parameters-Here ?
  }
}

How can I get them? Thank you in advance!


See the OperationContext for what gets passed automatically from calling client to the service.

Anything else must be passed explicitly from the client, e.g. as header fields or something.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号