Table of Contents

Interface ITopicSelector

Namespace
PushTechnology.ClientInterface.Client.Topics
Assembly
Diffusion.Client.dll

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

[Obsolete("Topic selectors are now deprecated and will be removed in a future release. Use string expressions instead.", false)]
public interface ITopicSelector

Remarks

Caution

Deprecated since 6.4. Topic selectors are no longer verified locally by the client library. Instead System.String 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

Returns the expression associated with this selector.

string Expression { get; }

Property Value

string

The expression associated with this selector.

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.

string PathPrefix { get; }

Property Value

string

The largest possible topic path prefix.

Type

Returns the type of selector.

TopicSelectorType Type { get; }

Property Value

TopicSelectorType

The type of selector.

Methods

Selects(string)

Evaluates this selector against a topic path.

bool Selects(string topicPath)

Parameters

topicPath string

The topic path.

Returns

bool

true if this selector selects topicPath.