Table of Contents

Class DefaultSubjectTypeMapper

Namespace: Apollo.Providers
Assembly: Apollo.dll

public class DefaultSubjectTypeMapper : ISubjectTypeMapper

Inheritance

objectDefaultSubjectTypeMapper

Implements

ISubjectTypeMapper

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

Subject

public required string Subject { get; init; }

Property Value

string

SubjectTypeMapping

public Dictionary<string, Type> SubjectTypeMapping { get; init; }

Property Value

Dictionary<string, Type>

Methods

ApolloMessageType(string)

public string ApolloMessageType(string messageType)

Parameters

messageType string

Returns

string

From(SubscriptionConfig)

public static DefaultSubjectTypeMapper From(SubscriptionConfig subscriptionConfig)

Parameters

subscriptionConfig SubscriptionConfig

Returns

DefaultSubjectTypeMapper

From(PublishConfig)

public static DefaultSubjectTypeMapper From(PublishConfig publishConfig)

Parameters

publishConfig PublishConfig

Returns

DefaultSubjectTypeMapper

TypeFromApolloMessageType(string)

public Type? TypeFromApolloMessageType(string headerMessageType)

Parameters

headerMessageType string

Returns

Type?

TypeMappedSubject(string, Type)

public static string TypeMappedSubject(string subject, Type messageType)

Parameters

subject string

messageType Type

Returns

string