Interface ITopicSpecification

Represents the specification of a topic.

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

A topic is specified in terms of its TopicType and a dictionary of optional property settings which can alter the default behavior of the topic.

All possible properties are defined in TopicSpecificationProperty.

Properties

Properties

Returns the topic properties as a dictionary.

Declaration
IReadOnlyDictionary<string, string> Properties { get; }
Property Value
Type Description
IReadOnlyDictionary<System.String, System.String>

The topic properties as a dictionary.

Remarks

This may be empty depending upon the level of detail requested.

Type

Returns the topic type.

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

The topic type.

Methods

WithProperties(IDictionary<String, String>)

Creates a new specification with the specified properties.

Declaration
ITopicSpecification WithProperties(IDictionary<string, string> properties)
Parameters
Type Name Description
IDictionary<System.String, System.String> properties

A dictionary of properties.

Returns
Type Description
ITopicSpecification

A new ITopicSpecification based upon this one but with all properties replaced by those in the given dictionary. Previous property settings will not be copied to the new specification.

WithProperty(String, String)

Creates a new specification with the specified property value set.

Declaration
ITopicSpecification WithProperty(string key, string value)
Parameters
Type Name Description
System.String key

The property key.

System.String value

The property value.

Returns
Type Description
ITopicSpecification

A new ITopicSpecification based upon the current but with the specified property set to the specified value. All other property settings will be copied to the new specification.

Back to top