Share via


WSDualHttpBinding.IBindingRuntimePreferences.ReceiveSynchronously Proprietà

Definizione

Ottiene un valore che indica se le richieste in entrata vengono gestite in modo sincrono o in modo asincrono.

property bool System::ServiceModel::Channels::IBindingRuntimePreferences::ReceiveSynchronously { bool get(); };
bool System.ServiceModel.Channels.IBindingRuntimePreferences.ReceiveSynchronously { get; }
member this.System.ServiceModel.Channels.IBindingRuntimePreferences.ReceiveSynchronously : bool
 ReadOnly Property ReceiveSynchronously As Boolean Implements IBindingRuntimePreferences.ReceiveSynchronously

Valore della proprietà

true se le richieste vengono gestite in modo sincrono; false se vengono gestite in modo asincrono. Il valore restituito è sempre false, per gestire le richieste in modo asincrono.

Implementazioni

Esempio

Nell'esempio seguente viene illustrato come ottenere il valore IBindingRuntimePreferences.ReceiveSynchronously.

public class TcpChunkingBinding : IBindingRuntimePreferences
{
Public Class TcpChunkingBinding
    Implements IBindingRuntimePreferences
TcpChunkingBinding tcb = new TcpChunkingBinding();
bool isSynchronous = tcb.ReceiveSynchronously;
Dim tcb As New TcpChunkingBinding()
Dim isSynchronous As Boolean = tcb.ReceiveSynchronously

Commenti

Questo valore può essere modificato utilizzando un comportamento del modello di servizio.

Si applica a