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

  • Air_Fooj

    Air_Fooj

    24 NİSAN 2009
  • Disney Pets and Animals

    Disney Pets

    29 ŞUBAT 2012
  • LounaTutorials

    LounaTutoria

    10 EYLÜL 2009