NetNamedPipeBinding.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

false to indicate that the incoming requests are handled asynchronously.

Implements

Examples

The following example shows the part of the configuration file that contains the section for the NetNamedPipeBinding with values set to defaults.

C#

NetNamedPipeBinding binding = new NetNamedPipeBinding();
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