Interface ITopicSelectors
Converts strings to topic selectors.
Namespace: PushTechnology.ClientInterface.Client.Topics
Assembly: Diffusion.Client.dll
Syntax
public interface ITopicSelectors
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.
Methods
AnyOf(ITopicSelector[])
Creates a SELECTOR_SET selector that matches if any of the provided selectors match.
Unlike AnyOf( string... ), this method allows topic ids to be combined.
Declaration
ITopicSelector AnyOf(params ITopicSelector[] selectors)
Parameters
Type | Name | Description |
---|---|---|
ITopicSelector[] | selectors | The selectors. |
Returns
Type | Description |
---|---|
ITopicSelector | A selector which matches if any of the selectors do. |
AnyOf(String[])
Convenient wrapper of AnyOf( ITopicSelector... ) that first parses the supplied expressions to create selectors.
Declaration
ITopicSelector AnyOf(params string[] expressions)
Parameters
Type | Name | Description |
---|---|---|
String[] | expressions | The expressions. |
Returns
Type | Description |
---|---|
ITopicSelector | A selector which matches any of the expressions. |
Parse(String)
Parses an expression to create a selector.
Declaration
ITopicSelector Parse(string expression)
Parameters
Type | Name | Description |
---|---|---|
String | expression | The pattern expression. |
Returns
Type | Description |
---|---|
ITopicSelector | The topic selector. |