Class SolaceTopicProfile
- Assembly
- Solace.SchemaRegistry.Serdes.Core.dll
A collection of artifact mappings. This object is for configuration, so it is assumed it will only be used in a single thread. It is NOT thread safe.
public class SolaceTopicProfile : ISolaceTopicProfile
- Inheritance
-
SolaceTopicProfile
- Implements
- Inherited Members
Properties
Mappings
Gets an independent ordered list of ISolaceTopicArtifactMapping instances.
public IReadOnlyList<ISolaceTopicArtifactMapping> Mappings { get; }
Property Value
Methods
Add(ISolaceTopicArtifactMapping)
Adds a ISolaceTopicArtifactMapping to the SolaceTopicProfile. The order in which you add mappings determines their priority, with earlier additions having higher priority.
public void Add(ISolaceTopicArtifactMapping mapping)
Parameters
mappingISolaceTopicArtifactMappingThe ISolaceTopicArtifactMapping to add
Exceptions
- ArgumentNullException
Thrown if the ISolaceTopicArtifactMapping is null
Clear()
Removes all mappings from the profile.
public void Clear()
Create()
Creates an empty SolaceTopicProfile instance.
public static SolaceTopicProfile Create()
Returns
- SolaceTopicProfile
A new SolaceTopicProfile instance
Remove(ISolaceTopicArtifactMapping)
Removes the specified ISolaceTopicArtifactMapping.
public ISolaceTopicArtifactMapping Remove(ISolaceTopicArtifactMapping mapping)
Parameters
mappingISolaceTopicArtifactMappingThe ISolaceTopicArtifactMapping to remove
Returns
- ISolaceTopicArtifactMapping
The removed ISolaceTopicArtifactMapping, or null if not found
Remove(int)
Removes a ISolaceTopicArtifactMapping at the specified index.
public ISolaceTopicArtifactMapping Remove(int index)
Parameters
indexintThe index of the mapping to remove
Returns
Exceptions
- ArgumentException
Thrown if the index is invalid
Remove(string)
Removes the first ISolaceTopicArtifactMapping that matches the given topic expression.
public ISolaceTopicArtifactMapping Remove(string topicExpression)
Parameters
topicExpressionstringThe topic expression to match
Returns
- ISolaceTopicArtifactMapping
The removed ISolaceTopicArtifactMapping, or null if not found