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
Post a Comment