Interface ITopicSelector

An ITopicSelector is a value that identifies one or more topics.

Namespace: PushTechnology.ClientInterface.Client.Topics
Assembly: Diffusion.Client.dll
Syntax
public interface ITopicSelector
Remarks

Caution

Deprecated since 6.4. Topic selectors are no longer verified locally by the client library. Instead expressions will be sent to (and verified by) the Diffusion server. This interface will be removed in a future release.


Added in 5.0.

Properties

Expression

The expression associated with this selector.

Declaration
string Expression { get; }
Property Value
Type Description
String

PathPrefix

Get the maximum topic path prefix from this selector pattern.

Attempts to extract the largest possible topic path that this selector defines, from the beginning of the selector. If this selector is a SPLIT_PATH_PATTERN or FULL_PATH_PATTERN, this will return a topic path up until the point that a regular expression pattern is first encountered.

For SELECTOR_SETs, this method will return the largest prefix that is common to all included selectors.

If no prefix can be extracted, this will return an empty string.

Declaration
string PathPrefix { get; }
Property Value
Type Description
String

the largest possible topic path prefix

Type

Returns the type of selector.

Declaration
TopicSelectorType Type { get; }
Property Value
Type Description
TopicSelectorType

Methods

Selects(String)

Evaluate this selector against a topic path.

Declaration
bool Selects(string topicPath)
Parameters
Type Name Description
String topicPath
Returns
Type Description
Boolean

true if this selector selects topicPath.

Back to top