开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜