开发者

How do you use Async Web Service to perform authentication?

开发者 https://www.devze.com 2023-03-21 18:22 出处:网络
I am new to Silverlight and need to user a WCF Service (dataService) to authenticate against a database.

I am new to Silverlight and need to user a WCF Service (dataService) to authenticate against a database.

I can return the results from the database but, these are in the completed event. If I use a property and the OnPropertyChanged event to bind to my login then I may run into the situation where the code sees the property before it's set.

A开发者_JAVA百科ny thoughts?


Just make sure and wait for the property to be set, then do your authentication afterward.

One way to do this would be to an attached property to your bound value, gave the attached property update the source on each keystroke.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号