c# - Unsubscribe event from asynchronous wcf operation -


i'm working on wp app, use wcf service. wp works asynchronous method, after adding service reference methods async. want ask you, when subscribe event, can unsubscribe event onsenddatacompleted method in example?

serviceclient.senddatacompleted += onsenddatacompleted; serviceclient.senddata(params);  void onsenddatacompleted(object sender, eventargs e){     serviceclient.senddatacompleted -= onsenddatacompleted; } 

thanks


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

php - HTTP_REFERER woes: How can I allow access to a specific page, only when a visitor has visited another specific page beforehand? -