netTCP绑定OneWay调用是否可以保证有序交付? [英] Does netTCP binding OneWay calls guarantees ordered delivery?

查看:55
本文介绍了netTCP绑定OneWay调用是否可以保证有序交付?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有netTcp绑定且带有单向调用的WCF服务.

I have a WCF service with netTcp binding with oneway calls.

从客户端,如果我一个接一个地调用这些单向调用,是否可以保证交货顺序?

From client, if I invoke these oneway calls one after the other, these guarantees the delivery orderer?


谢谢

推荐答案

要要求服务端点已订购交付,您必须应用
To require service endpoints to have ordered delivery you have to apply the DeliveryRequirementsAttribute.

[DeliveryRequirements(RequireOrderedDelivery=true)]

You can apply this attribute to a particular contract so that all services implementing the contract support ordered message delivery. You can also configure this at the service implementation.

Here are the binding configurations that will meet this requirement:

- NetNamedPipBinding and NetTcpBinding without reliable sessions support ordered at the transport level

- NetNamedPipBinding and NetTcpBinding with reliable session support must have ordered delivery to meet this requirement


这篇关于netTCP绑定OneWay调用是否可以保证有序交付?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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