Used by workers to retrieve a task (with the specified activity ARN) which has been
scheduled for execution by a running state machine. This initiates a long poll, where
the service holds the HTTP connection open and responds as soon as a task becomes
available (i.e. an execution of a task of this type is needed.) The maximum time the
service holds on to the request before responding is 60 seconds. If no task is available
within 60 seconds, the poll returns a
Workers should set their client side socket timeout to at least 65 seconds (5 seconds
higher than the maximum time the service may hold the poll request).
taskToken with a null string.
Workers should set their client side socket timeout to at least 65 seconds (5 seconds higher than the maximum time the service may hold the poll request).
For .NET Core and PCL this operation is only available in asynchronous form. Please refer to GetActivityTaskAsync.
public virtual GetActivityTaskResponse GetActivityTask( GetActivityTaskRequest request )
Container for the necessary parameters to execute the GetActivityTask service method.
Supported in: 4.5, 4.0, 3.5
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms