문제

I am looking for a way to query dns to get srv informations.

Nothing seems to exist in standard in .NET.

Is there any simple method to perform this action or should I create it myself ?

도움이 되었습니까?

해결책

You'll have to create this yourself.

I'm recommend creating a web service which can do this for you and then calling the webservice from your phone app.
This will move some of the complexity off the phone and into a locaiton it's easier for you to update (if needed). You could also cache results on the web server to reduce the number of lookups required.

Edit:
If you are unable to do this through a web service you're likely out of luck. the full framework has support for this - but Silverlight doesn't. Internally the full framework version uses sockets - which aren't unavailable on the phone.

The only alternative would be to call some other website which can do the resolution for you. But I'd assume that if you can't call a webservice this is out of the question too. In that case you won't be able to do this with the current SDK.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top