简体   繁体   English

.Net Web服务交易

[英].Net web services transaction

Is there any way transactions can be implemented in .Net web services ?. 有什么方法可以在.Net Web服务中实现事务? Is it possible ? 可能吗 ?

WCF support a rich transactional model - see the WCF支持丰富的事务模型-请参阅

on the topic to get up to speed. 赶上话题。

That will depend on hall you define transaction. 那将取决于您定义事务的大厅。

Web Services should be made stateless, that is, it should not rely on the client state to perform an operation, so every information the service requires should be send in a single package. Web服务应设置为无状态的,也就是说,它不应依赖于客户端状态来执行操作,因此,该服务需要的所有信息都应在单个程序包中发送。

With this in mind, if you define a transaction as a series of requests that ends up with a final "COMMIT" request, then you need to code your service to handle this "transaction", on your own. 考虑到这一点,如果您将事务定义为一系列以最终“ COMMIT”请求结尾的请求,则需要编写服务代码以自行处理此“事务”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM