Service activity that implements an operation defined by a Windows Communication Foundation (WCF) service contract.
Assembly: System.WorkflowServices (in System.WorkflowServices.dll)
[SerializableAttribute] [ToolboxBitmapAttribute(typeof(ReceiveActivity), "Design.Resources.ReceiveActivity.png")] [ObsoleteAttribute("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")] public sealed class ReceiveActivity : SequenceActivity, IEventActivity, IActivityEventListener<QueueEventArgs>
Gets or sets whether the operation causes a new workflow service instance to be created.
Gets the context information for this activity.
Represents a token that can be used to specify the context that should be used to correlate the exchange between aactivity and the client that the activity is communicating with.
Gets the value that indicates whether this instance is in design or run-time mode.(Inherited from DependencyObject.)
Gets or sets a value that indicates whether this instance is enabled for execution and validation.(Inherited from Activity.)
The exception that is returned when a receive activity completes execution.
Gets or sets the name of this instance. This name must conform to the variable naming convention of the programming language that is being used in the Workflow project.(Inherited from Activity.)
Gets the collection of bindable parameters as found in the service's formal parameter list.
Gets the qualified name of the activity. Qualified activity names are always unique in a workflow instance.(Inherited from Activity.)
Defines the contract and service operation that theactivity implements.
Occurs when the activity execution is canceled. (Inherited from Activity.)
Occurs when an exception is raised during the running of the instance.(Inherited from Activity.)
Occurs when a message is received for an operation and validation is required.
Represents the method that handles the Disposed event of a component.(Inherited from DependencyObject.)
Creates the subscription of theactivity to an event.
Cancels the subscription of a Activity to an event.
Defines the processing procedure when the subscribed-to event occurs.(Inherited from SequenceActivity.)
Defines the processing procedure when the subscribed-to event occurs.
Gets the name of the WorkflowQueue on which the activity is waiting for data to arrive.
This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.
Theactivity is used when a workflow implements an operation defined in a WCF service contract. The can implement an operation from an already defined service contract or can define the service contract and operation within the workflow itself. The latter is known as a workflow-first contract.
Theactivity supports a set of predefined message exchange patterns. These patterns include:
The client that sends the message does not expect the service to send a response. The contract operation should have a void return type.
Receive request - Send response
After a message is received and processed by theactivity, a response is sent back to the client. When the contract operation has a void return type, an acknowledgement is sent back to the send activity.
Receive request - Send fault
After a message is received and processed by theactivity, a response or a fault is sent back to the client.
To ensure that persistence performs properly and does not persist transient messages, make sure that child activities of thedo not persist by themselves. This can occur if the child activities go idle when a persistence provider was created with UnloadOnIdle set to true, for instance.
This activity is part of .NET Framework 3.5. For the equivalent activity in .NET Framework 4, see Receive.
Available since 3.5
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.