Note: In order to use this feature, the parent ISession's SessionProperties must have TopicDispatch set to true.
ReturnCode Subscribe(
IDispatchTarget dispatchTarget,
int flags,
Object correlationKey
)
OperationErrorException |
Thrown when the Subscribe operation fails. More details are available in the fields
of the OperationErrorException.
Possible sub-codes:
|
ObjectDisposedException | Thrown when the session is already disposed (terminal state). |
FatalErrorException | Thrown when an unrecoverable error occurs. |
ArgumentNullException | Thrown if dispatchTarget is null. |