 | TemporalClientActivityErrorByTokenAsync Method |
Used to externally fail an activity by task token.
Namespace:
Neon.Temporal
Assembly:
Neon.Temporal (in Neon.Temporal.dll) Version: 2.14.0-alpha
Syntaxpublic Task ActivityErrorByTokenAsync(
string taskToken,
Exception error,
string namespace = null
)
Public Function ActivityErrorByTokenAsync (
taskToken As String,
error As Exception,
Optional namespace As String = Nothing
) As Task
public:
Task^ ActivityErrorByTokenAsync(
String^ taskToken,
Exception^ error,
String^ namespace = nullptr
)
member ActivityErrorByTokenAsync :
taskToken : string *
error : Exception *
?namespace : string
(* Defaults:
let _namespace = defaultArg namespace null
*)
-> Task
Parameters
- taskToken
- Type: SystemString
The opaque base-64 encoded activity task token. - error
- Type: SystemException
Specifies the activity error. - namespace (Optional)
- Type: SystemString
Optionally overrides the default TemporalClient namespace.
Return Value
Type:
TaskThe tracking
Task.
Exceptions
See Also