Class DefaultSubjectTypeMapper
Namespace: Apollo.Providers
Assembly: Apollo.dll
public class DefaultSubjectTypeMapper : ISubjectTypeMapper
Inheritance
object ← DefaultSubjectTypeMapper
Implements
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
SubjectTypeMapping
public Dictionary<string, Type> SubjectTypeMapping { get; init; }
Property Value
Methods
ApolloMessageType(string)
public string ApolloMessageType(string messageType)
Parameters
messageType
string
Returns
From(SubscriptionConfig)
public static DefaultSubjectTypeMapper From(SubscriptionConfig subscriptionConfig)
Parameters
subscriptionConfig
SubscriptionConfig
Returns
From(PublishConfig)
public static DefaultSubjectTypeMapper From(PublishConfig publishConfig)
Parameters
publishConfig
PublishConfig
Returns
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