Diffusion .NET API  5.9.24
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Client.Topics.ITopicSelectors Interface Reference

Converts strings to topic selectors. More...

Inherited by PushTechnology.ClientInterface.Client.Topics.TopicSelectorsImpl.

Public Member Functions

ITopicSelector Parse (string expression)
 Parse an expression to create a selector. More...
 
ITopicSelector AnyOf (params string[] expressions)
 Convenient wrapper of AnyOf( ITopicSelector... ) that first parses the supplied expressions to create selectors. More...
 
ITopicSelector AnyOf (params ITopicSelector[] selectors)
 Create a selector set selector that matches if any of the provided selectors match. More...
 

Detailed Description

Converts strings to topic selectors.

Selectors are evaluated against topic paths. A topic path is a '/' separated string of parts, which map to the topic hierarchy. Each part is formed of one or more UTF characters, except '/'. Topic paths are absolute, and evaluated from the root of the current domain.

An instance of this may be obtained as follows:

var selectors = Diffusion.TopicSelectors;

Member Function Documentation

ITopicSelector PushTechnology.ClientInterface.Client.Topics.ITopicSelectors.AnyOf ( params string[]  expressions)

Convenient wrapper of AnyOf( ITopicSelector... ) that first parses the supplied expressions to create selectors.

Parameters
expressionsThe expressions.
Returns
A selector which matches any of the expressions.
ITopicSelector PushTechnology.ClientInterface.Client.Topics.ITopicSelectors.AnyOf ( params ITopicSelector[]  selectors)

Create a selector set selector that matches if any of the provided selectors match.

Unlike AnyOf( string... ), this method allows topic ids to be combined.

Parameters
selectorsThe selectors.
Returns
A selector which matches if any of the selectors do.
ITopicSelector PushTechnology.ClientInterface.Client.Topics.ITopicSelectors.Parse ( string  expression)

Parse an expression to create a selector.

Parameters
expressionThe pattern expression.
Returns
The topic selector.

The documentation for this interface was generated from the following file: