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

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -