SendReply.Request Property

.NET Framework (current version)
 

Gets or sets a reference to the Receive activity paired with this SendReply activity.

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

public Receive Request { get; set; }

Property Value

Type: System.ServiceModel.Activities.Receive

A receive activity.

This property must not be null. Receive and SendReply activities are used together on the service side to model a request/response messaging pattern. This property specifies which Receive activity is paired.

The following example shows how to use this constructor.

new SendReply
{                           
    Request = receiveString,                            
    Content = new SendParametersContent
    {
        Parameters =
        {
            { "echo", new InArgument<string>(echo) }
        },
    }
},

.NET Framework
Available since 4.0
Return to top
Show: