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

  • failblog

    failblog

    17 HAZİRAN 2008
  • FrameCityJackal

    FrameCityJac

    4 Aralık 2010
  • Jejoab

    Jejoab

    4 NİSAN 2008