异步WCF调用和维护会话? [英] asynchronous wcf call and mantaining session ?
本文介绍了异步WCF调用和维护会话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的网站上有两个页面.从第1页开始,我正在异步调用wcf服务,这需要花费时间才能返回结果,因此我想同时转到第一个页面.如果该服务有,我想返回第1页时完成后,它应该在第1页上显示结果.
i have two pages on my website .from page 1 i am calling a wcf service asynchronously and it takes time to return result so i want to go to page meanwhile .I want when i go back to page 1 if the service has completed it should display result on page 1.
推荐答案
您可能可以通过创建一个处理与wcf服务的通信的静态类(并包含一个asynccomplete
处理程序.您还可以编写一个Web服务,该Web服务依次调用另一个Web服务并将结果存储在数据库中. questoin.
You might be able to do that by creating a static class that handles the communications with the wcf service (and contains a asynccomplete
handler. You could also write a web service that in turn calls the other other web service and stores the result in a database. At that point, you could simply check the database for the result whenever the user returns to the page in questoin.
这篇关于异步WCF调用和维护会话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文