开发者

Silverlight 4: Application_Exit

How do I call a webservice in the Application_Exit event?

 private void 开发者_JS百科Application_Exit(object sender, EventArgs e)
    {
        TestWSSoapClient.ReleaseUserCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(TestWSSoapClient_ReleaseUserCompleted);
        TestWSSoapClient.ReleaseUserAsync(UserToken);}

The method below is no longer executed.

void TestWSSoapClient_ReleaseUserCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
    {

    }

Thank you in advance.


I finally solved my problem by following this example

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜