Class TopicControlAddCallbackDefault

The default ITopicControlAddCallback implementation.

Inheritance
System.Object
CallbackDefault
TopicControlAddCallbackDefault
Implements
ITopicControlAddCallback
ICallback
Inherited Members
CallbackDefault.OnDiscard()
Namespace: PushTechnology.ClientInterface.Client.Features.Control.Topics
Assembly: Diffusion.Client.dll
Syntax
public class TopicControlAddCallbackDefault : CallbackDefault, ITopicControlAddCallback, ICallback
Remarks

This simply logs OnTopicAdded(String) calls at 'debug' level and OnTopicAddFailed(String, TopicAddFailReason) calls at 'warn' level. This can be overridden to perform some more specific action.

Methods

OnTopicAdded(String)

Called to indicate that the topic has been successfully added.

Declaration
public virtual void OnTopicAdded(string topicPath)
Parameters
Type Name Description
System.String topicPath

The topic path of the topic that was added.

OnTopicAddFailed(String, TopicAddFailReason)

Called to indicate that an attempt to add a topic has failed.

Declaration
public virtual void OnTopicAddFailed(string topicPath, TopicAddFailReason reason)
Parameters
Type Name Description
System.String topicPath

The topic path as supplied to the add request.

TopicAddFailReason reason

The reason for failure.

Implements

ITopicControlAddCallback
ICallback
Back to top