confluent-kafka-dotnet
Show / Hide Table of Contents

Class SubjectNameStrategyExtensions

Extension methods for the SubjectNameStrategy type.

Inheritance
object
SubjectNameStrategyExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.SchemaRegistry
Assembly: Confluent.SchemaRegistry.dll
Syntax
public static class SubjectNameStrategyExtensions

Methods

ConstructKeySubjectName(SubjectNameStrategy, string, string)

Helper method to construct the key subject name given the specified parameters.

Declaration
[Obsolete("SubjectNameStrategy should now be specified via serializer configuration. This method will be removed in a future release.")]
public static string ConstructKeySubjectName(this SubjectNameStrategy strategy, string topic, string recordType = null)
Parameters
TypeNameDescription
SubjectNameStrategystrategy
stringtopic
stringrecordType
Returns
TypeDescription
string

ConstructValueSubjectName(SubjectNameStrategy, string, string)

Helper method to construct the value subject name given the specified parameters.

Declaration
[Obsolete("SubjectNameStrategy should now be specified via serializer configuration. This method will be removed in a future release.")]
public static string ConstructValueSubjectName(this SubjectNameStrategy strategy, string topic, string recordType = null)
Parameters
TypeNameDescription
SubjectNameStrategystrategy
stringtopic
stringrecordType
Returns
TypeDescription
string

ToAsyncDelegate(SubjectNameStrategy, ISchemaRegistryClient, IEnumerable<KeyValuePair<string, string>>)

Provide an async functional implementation corresponding to the enum value.

Declaration
public static AsyncSubjectNameStrategyDelegate ToAsyncDelegate(this SubjectNameStrategy strategy, ISchemaRegistryClient schemaRegistryClient = null, IEnumerable<KeyValuePair<string, string>> config = null)
Parameters
TypeNameDescription
SubjectNameStrategystrategy

The subject name strategy.

ISchemaRegistryClientschemaRegistryClient

Optional. Required when strategy is Associated. The schema registry client to use for lookups.

IEnumerable<KeyValuePair<string, string>>config

Optional. Used when strategy is Associated. The configuration.

Returns
TypeDescription
AsyncSubjectNameStrategyDelegate

An AsyncSubjectNameStrategyDelegate.

ToDelegate(SubjectNameStrategy)

Provide a functional implementation corresponding to the enum value.

Declaration
[Obsolete("Superseded by ToAsyncDelegate. This method cannot be used with SubjectNameStrategy.Associated.")]
public static SubjectNameStrategyDelegate ToDelegate(this SubjectNameStrategy strategy)
Parameters
TypeNameDescription
SubjectNameStrategystrategy

The subject name strategy.

Returns
TypeDescription
SubjectNameStrategyDelegate

A SubjectNameStrategyDelegate.

In this article