Interface ITopicControlAddContextCallback<TContext>
The contextual callback interface for adding topics.
Inherited Members
Namespace: PushTechnology.ClientInterface.Client.Features.Control.Topics
Assembly: Diffusion.Client.dll
Syntax
public interface ITopicControlAddContextCallback<in TContext> : IContextCallback<TContext>
Type Parameters
Name | Description |
---|---|
TContext | The context type. |
Remarks
Caution
Deprecated since 6.7. Methods that use contextual callbacks are deprecated and will be removed in a future release. Use a Task instead.
Use this alternative to ITopicControlAddCallback to associate some arbitrary context with each call.
Methods
OnTopicAdded(TContext, String)
Called to indicate that the topic has been successfully added.
Declaration
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
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. |