EasyUA Reference
PublishError Event
See Also  Send Feedback
EasyUA Assembly > Advosol.EasyUA Namespace > Session Class : PublishError Event

Glossary Item Box

Raised when an exception occurs while processing a publish response.

Syntax

Visual Basic (Usage)Copy Code
Dim instance As Session
Dim handler As OnPublishError
 
AddHandler instance.PublishError, handler
C# 
public event OnPublishError PublishError

Event Data

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.

PropertyDescription
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.

Remarks

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.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.