Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Session Dim handler As OnPublishError AddHandler instance.PublishError, handler |
C# | |
---|---|
public event OnPublishError PublishError |
The event handler receives an argument of type PublishErrorEventArgs containing data related to this event. The following PublishErrorEventArgs properties provide information specific to this event.
Property | Description |
---|---|
SequenceNumber | Gets the sequence number for the message that could not be republished. |
Status | Gets the status associated with the keep alive operation. |
SubscriptionId | Gets the subscription with the message that could not be republished. |
Exceptions in a publish response are not necessarily fatal and the Session will
attempt to recover by issuing Republish requests if missing messages are detected.
That said, timeout errors may be a symptom of a OperationTimeout that is too short
when compared to the shortest PublishingInterval/KeepAliveCount amount the current
Subscriptions. The OperationTimeout should be twice the minimum value for
PublishingInterval*KeepAliveCount.
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x