WSHttpBindingBase.IBindingRuntimePreferences.ReceiveSynchronously Property

 

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

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

bool IBindingRuntimePreferences.ReceiveSynchronously { get; }

Property Value

Type: System.Boolean

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

This example shows how to use the ReceiveSynchronously member.

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

}

.NET Framework
Available since 3.0
Return to top
Show: