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

  • aki6336

    aki6336

    14 AĞUSTOS 2008
  • arnejann

    arnejann

    3 Kasım 2007
  • TastyTuts | Creative video tutorials by Gareth David

    TastyTuts |

    6 Temmuz 2011