IBindingRuntimePreferences.ReceiveSynchronously Property


Gets a value that indicates whether incoming requests can be handled more efficiently synchronously or asynchronously.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

bool ReceiveSynchronously { get; }

Property Value

Type: System.Boolean

true if requests can be handled more efficiently synchronously; otherwise false. The default is false, to handle requests asynchronously.

The standard (system-provided) bindings provided by Windows Communication Foundation (WCF) have implemented this interface and in some cases override the default value to process incoming messages synchronously.

public bool ReceiveSynchronously
    get { return true; }

.NET Framework
Available since 3.0
Return to top