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

  • Floortile83

    Floortile83

    16 Ocak 2010
  • ravinderosahn

    ravinderosah

    20 Temmuz 2009
  • Turkish Airlines

    Turkish Airl

    11 AĞUSTOS 2006