Table of Contents

Class SolaceTopicProfile

Namespace
Solace.SchemaRegistry.Serdes.Core.Resolver.Strategy
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

IReadOnlyList<ISolaceTopicArtifactMapping>

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

mapping ISolaceTopicArtifactMapping

The 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

mapping ISolaceTopicArtifactMapping

The 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

index int

The index of the mapping to remove

Returns

ISolaceTopicArtifactMapping

The removed ISolaceTopicArtifactMapping

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

topicExpression string

The topic expression to match

Returns

ISolaceTopicArtifactMapping

The removed ISolaceTopicArtifactMapping, or null if not found