运行功能而不停止 [英] run function without stoping

查看:61
本文介绍了运行功能而不停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对线程知之甚少(虽然我认为这是我需要使用的b $ b。)


我有网络服务和网络应用程序。这是我的理解(纠正我

,如果我错了),如果一个Web应用程序调用一个Web服务执行

应用程序等待Web服务完成它返回一个值或

不。有没有办法阻止这个?


谢谢

Gav

I have very little knowledge of threads (although I think this is what I
need to use).

I have web services and web applications. It''s my understanding (correct me
if I''m wrong) that if a web application calls a web service execution of the
application waits for the web service to finish wether it returns a value or
not. Is there a way to stop this?

Thanks
Gav

推荐答案

当您导入Web引用时,生成的代理类对于Web服务中的每个web方法都有

同步和异步方法

(这是自动完成的 - 网络服务的开发者

并不是手动创建异步方法。每种方法都可以通过以下方式调用



MethodName(无论参数)

OR:

BeginMethodName(无论参数)


BeginX方法是异步方法。它遵循整个框架中使用的asyncronous模型




-Brian

" Gav" < SP ** @ spam.com>在留言中写道

新闻:嗯************** @ tk2msftngp13.phx.gbl ...
When you import a web-reference, the proxy class that is generated has
syncronous and asyncronous methods for each webmethod in the webservice
(this is something done automatically - the developer of the webservice
doesn''t manually have to create the asyncronous methods). Every method can
be called with:

MethodName(whatever arguments)
OR:
BeginMethodName(whatever arguments)

The BeginX method is the asyncronous one. It follows the asyncronous model
used throughout the framework.

-Brian
"Gav" <sp**@spam.com> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
我知之甚少线程(虽然我认为这是我需要使用的)。

我有Web服务和Web应用程序。这是我的理解(正确
我,如果我错了)如果一个Web应用程序调用
的Web服务执行,应用程序等待Web服务完成它返回值
与否。有没有办法阻止这个?

谢谢
Gav
I have very little knowledge of threads (although I think this is what I
need to use).

I have web services and web applications. It''s my understanding (correct me if I''m wrong) that if a web application calls a web service execution of the application waits for the web service to finish wether it returns a value or not. Is there a way to stop this?

Thanks
Gav



导入网页时-reference,生成的代理类对于webservice中的每个web方法都有

同步和异步方法

(这是自动完成的事情 - webservice的开发者

不必手动创建异步方法)。每种方法都可以通过以下方式调用



MethodName(无论参数)

OR:

BeginMethodName(无论参数)


BeginX方法是异步方法。它遵循整个框架中使用的asyncronous模型




-Brian

" Gav" < SP ** @ spam.com>在留言中写道

新闻:嗯************** @ tk2msftngp13.phx.gbl ...
When you import a web-reference, the proxy class that is generated has
syncronous and asyncronous methods for each webmethod in the webservice
(this is something done automatically - the developer of the webservice
doesn''t manually have to create the asyncronous methods). Every method can
be called with:

MethodName(whatever arguments)
OR:
BeginMethodName(whatever arguments)

The BeginX method is the asyncronous one. It follows the asyncronous model
used throughout the framework.

-Brian
"Gav" <sp**@spam.com> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
我知之甚少线程(虽然我认为这是我需要使用的)。

我有Web服务和Web应用程序。这是我的理解(正确
我,如果我错了)如果一个Web应用程序调用
的Web服务执行,应用程序等待Web服务完成它返回值
与否。有没有办法阻止这个?

谢谢
Gav
I have very little knowledge of threads (although I think this is what I
need to use).

I have web services and web applications. It''s my understanding (correct me if I''m wrong) that if a web application calls a web service execution of the application waits for the web service to finish wether it returns a value or not. Is there a way to stop this?

Thanks
Gav



Hello Gav,


感谢您的帖子。正如Brian建议的那样,您可以进行异步Web

服务调用,如果需要,可以为您提供取消呼叫的机会。

有关详细信息,请参阅以下MSDN文章:


使用.NET Framework通过HTTP调用异步Web服务
http://msdn.microsoft.com/library/de...us/dnservice/h

tml / service09032002.asp


希望这会有所帮助。


问候,


HuangTM

微软在线合作伙伴支持

MCSE / MCSD


安全! - www.microsoft.com/security

发布是按原样提供的。没有保证,也没有赋予任何权利。

Hello Gav,

Thanks for your post. As suggested by Brian, you can make asynchronous Web
Service calls which offer you the opportunity to cancel calls if needed.
Please refer to the following MSDN article for detailed information:

Asynchronous Web Service Calls over HTTP with the .NET Framework
http://msdn.microsoft.com/library/de...us/dnservice/h
tml/service09032002.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


这篇关于运行功能而不停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆