WSHttpBindingBase.IBindingRuntimePreferences.ReceiveSynchronously Property

Definition

Gets a value that indicates whether incoming requests are handled synchronously or asynchronously.

C#
bool System.ServiceModel.Channels.IBindingRuntimePreferences.ReceiveSynchronously { get; }

Property Value

true if requests are handled synchronously; false if handled asynchronously. The default is false, to handle requests asynchronously.

Implements

Examples

This example shows how to use the ReceiveSynchronously member.

C#
static void SnippetReceiveSynchronously ()
{
    WSHttpBinding binding = new WSHttpBinding();
    IBindingRuntimePreferences s  =
                       binding.GetProperty<IBindingRuntimePreferences>
                       (new BindingParameterCollection());
    bool receiveSynchronously = s.ReceiveSynchronously;
}

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1