TransferSession 列舉

定義

判斷從用戶端到應用程式之訊息傳送的合約是否需要工作階段,以及訊息的傳遞是否必須保留用戶端呼叫作業的順序。Determines if the contract for the transfer of messages from a client to an application requires a session and whether the delivery of messages must preserve the order in which operations are called by the client.

public enum class TransferSession
public enum TransferSession
type TransferSession = 
Public Enum TransferSession
繼承
TransferSession

欄位

None 0

指定不需要工作階段,也能夠與此合約上的服務進行互動。Specifies that a session is not required to interact with the services on this contract.

Ordered 1

指定必須有附帶已排序之訊息傳遞保證的工作階段,才能夠與此合約上的服務進行互動。Specifies that a session with ordered message delivery guarantees is required to interact with the services on this contract.

Unordered 2

指定有附帶未排序之訊息傳遞保證的工作階段,就足以能夠與此合約上的服務進行互動。Specifies that a session with unordered message delivery guarantees is sufficient to interact with the services on this contract.

備註

TransferSession 列舉型別 (Enumeration) 通常會結合服務合約一起使用。The TransferSession enumerations are typically used in association with a service contract. 當用戶端將訊息傳送到遠端應用程式或服務來呼叫作業時,會使用 TransferSession 來判斷是否需要工作階段來與此服務互動,以及用來叫用 (Invoke) 服務上作業的訊息是否必須根據其傳送的順序來送達。When a client sends messages to a remote application or service to call operations, TransferSession is used to determine if a session is required to interact with the service and whether the messages used to invoke the operations at a service must arrive in the same order in which they were sent.

用戶端與服務之間的訊息傳遞會要求工作階段保留用戶端呼叫作業的順序。Message delivery between client and service requires a session to preserve the order in which operations are called by the client. 如果端點之間沒有任何工作階段,則傳遞順序不會影響訊息傳送的順序。If there is no session between endpoints, then the delivery order does not reflect the order in which the messages are sent.

  • 應用程式使用的 TransferSession 值會指定應用程式是否需要呼叫順序 (Calling Sequence) 中的特定順序。The value of TransferSession that an application uses specifies whether the application requires a specific order in the calling sequence. 如果已排序, 則合約會要求訊息必須以其傳送的順序抵達。If Ordered, then the contract requires that messages must arrive in the order in which they are sent.

  • 如果未排序, 則用來叫用公用作業的訊息可能會以任何順序抵達。If Unordered, then the messages used to invoke public operations can arrive in any order.

如果沒有, 則不會有任何會話。If None, there are no sessions.

適用於