Skip to content

PubSubSubscriptionState Methods

Represents the pub/sub registration state for a stream subscription.

AddFilter(string?)

View source
public void AddFilter(string? filterData)
Sets the serialized filter data associated with the subscription.

Parameters

filterDatastring?
The serialized filter data.

Equals(GuidId?)

View source
public bool Equals(GuidId? subscriptionId)
Determines whether this subscription has the specified identifier.

Parameters

subscriptionIdGuidId?
The subscription identifier to compare.

Returns

true if the identifiers are equal; otherwise, false.

Equals(PubSubSubscriptionState?)

View source
public bool Equals(PubSubSubscriptionState? other)
Indicates whether the current object is equal to another object of the same type.

Parameters

otherPubSubSubscriptionState?
An object to compare with this object.

Returns

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

override
View source
public override bool Equals(object? obj)
Determines whether the specified object is equal to the current object.

Parameters

objobject?
The object to compare with the current object.

Returns

true if the specified object is equal to the current object; otherwise, false.

GetHashCode

override
View source
public override int GetHashCode()
Serves as the default hash function.

Returns

A hash code for the current object.

ToString

override
View source
public override string ToString()
Returns a string that represents the current object.

Returns

A string that represents the current object.

operator ==(PubSubSubscriptionState?, PubSubSubscriptionState?)

static
View source
public static bool operator ==(PubSubSubscriptionState? left, PubSubSubscriptionState? right)
Compares two subscription states for equality by subscription identifier.

Parameters

leftPubSubSubscriptionState?
The first subscription state.
rightPubSubSubscriptionState?
The second subscription state.

Returns

true if both values are null or have the same subscription identifier; otherwise, false.

operator !=(PubSubSubscriptionState?, PubSubSubscriptionState?)

static
View source
public static bool operator !=(PubSubSubscriptionState? left, PubSubSubscriptionState? right)
Compares two subscription states for inequality by subscription identifier.

Parameters

leftPubSubSubscriptionState?
The first subscription state.
rightPubSubSubscriptionState?
The second subscription state.

Returns

true if the values are not equal; otherwise, false.