Interface ISubscriptionDefinition
Definiert ein Abonnement, das Themen abgleicht und sie Agenten zuordnet.
public interface ISubscriptionDefinition
Eigenschaften
Id
Ruft die eindeutige Kennung des Abonnements ab.
string Id { get; }
Eigenschaftswert
Methoden
Equals(ISubscriptionDefinition?)
Bestimmt, ob das angegebene Abonnement mit dem aktuellen Abonnement identisch ist.
bool Equals(ISubscriptionDefinition? other)
Parameter
otherISubscriptionDefinitionDas zu vergleichende Abonnement.
Rückgabe
- bool
true, wenn die Abonnements identisch sind; andernfallsfalse.
Equals(object?)
Bestimmt, ob das angegebene Objekt mit dem aktuellen Abonnement identisch ist.
bool Equals(object? obj)
Parameter
objobjectDas Objekt, das mit der aktuellen Instanz verglichen werden soll.
Rückgabe
- bool
true, wenn das angegebene Objekt mit dieser Instanz identisch ist; andernfallsfalse.
GetHashCode()
Gibt einen Hashcode für dieses Abonnement zurück.
int GetHashCode()
Rückgabe
- int
Ein Hashcode für das Abonnement.
MapToAgent(TopicId)
Ordnet eine TopicId einer AgentId zu. Sollte nur aufgerufen werden, wenn Matches(TopicId) true zurückgibt.
AgentId MapToAgent(TopicId topic)
Parameter
topicTopicIdDas zuzuordnende Thema.
Rückgabe
Matches(TopicId)
Überprüft, ob eine gegebene TopicId mit dem Abonnement übereinstimmt.
bool Matches(TopicId topic)
Parameter
topicTopicIdDas zu prüfende Thema.
Rückgabe
- bool
true, wenn das Thema mit dem Abonnement übereinstimmt; andernfallsfalse.