Table of Contents

Interface ISolaceTopicArtifactMapping

Namespace
Solace.SchemaRegistry.Serdes.Core.Resolver.Strategy
Assembly
Solace.SchemaRegistry.Serdes.Core.dll

Interface to describe a mapping between a Solace topic expression and schema registry artifact reference. Topic expression follow the Solace topic wildcard character rules for matching.

Enables mapping between parameterized Solace topic and schema registry artifact references for example:

Topic 'NA/order/1/cart'

matches topic expression 'NA/order/*/cart'

maps to artifact reference with artifact id: 'Orders'

public interface ISolaceTopicArtifactMapping

Properties

ArtifactReference

Gets the mapped artifact reference.

IArtifactReference ArtifactReference { get; }

Property Value

IArtifactReference

TopicExpression

Gets the topic expression.

string TopicExpression { get; }

Property Value

string

Methods

Match(string)

Method for matching a given destination name to a topic expression.

bool Match(string destinationName)

Parameters

destinationName string

The destination name to test

Returns

bool

True if the name matches the topic expression otherwise, false

Exceptions

ArgumentNullException

Thrown when destinationName is null.

See Also