SORU
18 EYLÜL 2008, PERŞEMBE


Elde istemci IP adresi XML 3.0

Görünüşe göre kolayca XML 3.5 ama XML 3.0 değil istemci IP adresi elde edebilirsiniz. Herkes nasıl biliyor?

CEVAP
18 EYLÜL 2008, PERŞEMBE


Bu 3.0, ama sadece insanlar bu soruyu bulma ve 3.5 istemci IP adresini almak için çalışıyoruz, çünkü hayal kırıklığına görebiliyorum size yardımcı olmuyor. Yani, burada çalışması gereken bazı kodlar var:

using System.ServiceModel;
using System.ServiceModel.Channels;

OperationContext context = OperationContext.Current;
MessageProperties prop = context.IncomingMessageProperties;
RemoteEndpointMessageProperty endpoint =
    prop[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty;
string ip = endpoint.Address;

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • PC Learning Zone - Computer Training

    PC Learning

    8 EYLÜL 2006
  • Vintendo Power

    Vintendo Pow

    2 Ocak 2007
  • Yanko Kral

    Yanko Kral

    8 HAZİRAN 2006