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)
Declaration
public virtual void OnTopicAdded(TContext context, string topicPath)
Parameters
Type | Name | Description |
---|---|---|
TContext | context | |
String | topicPath |
OnTopicAddFailed(TContext, String, TopicAddFailReason)
Declaration
public virtual void OnTopicAddFailed(TContext context, string topicPath, TopicAddFailReason reason)
Parameters
Type | Name | Description |
---|---|---|
TContext | context | |
String | topicPath | |
TopicAddFailReason | reason |