开发者

Silverlight 4: Application_Exit

开发者 https://www.devze.com 2023-01-04 21:21 出处:网络
How do I call a webservice in the Application_Exit event? private void 开发者_JS百科Application_Exit(object sender, EventArgs e)

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

精彩评论

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

关注公众号