Class TopicControlAddContextCallbackDefault<TContext>
The default ITopicControlAddContextCallback<TContext> implementation.
Inherited Members
Namespace: PushTechnology.ClientInterface.Client.Features.Control.Topics
Assembly: Diffusion.Client.dll
Syntax
public class TopicControlAddContextCallbackDefault<TContext> : ContextCallbackDefault<TContext>, ITopicControlAddContextCallback<TContext>, IContextCallback<TContext>
Type Parameters
Name | Description |
---|---|
TContext | The context type. |
Remarks
This simply logs OnTopicAdded(TContext, String) calls at 'debug' level and OnTopicAddFailed(TContext, String, TopicAddFailReason) calls at 'warn' level. This can be overridden to perform some more specific action.
Methods
OnTopicAdded(TContext, String)
Called to indicate that the topic has been successfully added.
Declaration
public virtual void OnTopicAdded(TContext context, string topicPath)
Parameters
Type | Name | Description |
---|---|---|
TContext | context | The context object the application supplied when making the call or |
String | topicPath | The topic path of the topic that was added. |
OnTopicAddFailed(TContext, String, TopicAddFailReason)
Called to indicate that an attempt to add a topic has failed.
Declaration
public virtual void OnTopicAddFailed(TContext context, string topicPath, TopicAddFailReason reason)
Parameters
Type | Name | Description |
---|---|---|
TContext | context | The context object the application supplied when making the call or |
String | topicPath | The topic path as supplied to the add request. |
TopicAddFailReason | reason | The reason for failure. |