WSDualHttpBinding.IBindingRuntimePreferences.ReceiveSynchronously Свойство

Определение

Возвращает значение, указывающее, обрабатываются ли входящие запросы синхронно или асинхронно.

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

Значение свойства

Значение , если запросы обрабатываются синхронно; Значение , если обрабатывается асинхронно. Возвращаемое значение всегда равно , falseчтобы обрабатывать запросы асинхронно.

Реализации

Примеры

В следующих примерах показано, как получить 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

Комментарии

Это значение можно изменить с помощью поведения модели службы.

Применяется к