SocialPostRetryingNotification
Published before a person retries a channel’s result that is Failed or Unknown (the Retry and Retry anyway actions on the Published page, or POST targets/{id}/retry). A handler can refuse the retry.
The following properties are available within the notification
| Property Name | Type | Use |
|---|---|---|
| Target | SocialPostTargetInfo |
The target, as it is now (before the retry). |
| Messages | EventMessages |
Add the message to return when you cancel. |
| Cancel | bool |
Set to true to cancel without a message. |
SocialPostTargetInfo (read-only) has these properties:
| Property Name | Type | Use |
|---|---|---|
| TargetId | int |
The post’s target on this channel. |
| PostId | int |
The post’s id. |
| ChannelKey | Guid |
The channel. |
| Network | string |
The channel’s network id. |
| Status | TargetStatus | The target’s status. |
| Attempt | int |
The attempt number (0 for the first). |
Cancelling
Section titled “Cancelling”Call CancelOperation(new EventMessage(category, message, EventMessageType.Error)). Nothing changes, and the result is target.cancelled:<message>.
The notification is published only for a target that can be retried: one that exists (target.not_found), isn’t sealed (post.sealed) and is Failed or Unknown (target.not_retryable). Those checks run first.
SocialPostRetriedNotification is published after the save.