Class ObservableQuerySSEUnsubscribeRequest

Namespace
Cratis.Arc.Queries
Assembly
Cratis.Arc.Core.dll

Represents the POST body for unsubscribing from a query over the SSE hub transport.

public record ObservableQuerySSEUnsubscribeRequest : IEquatable<ObservableQuerySSEUnsubscribeRequest>
Inheritance
ObservableQuerySSEUnsubscribeRequest
Implements
Inherited Members
Extension Methods

Constructors

ObservableQuerySSEUnsubscribeRequest(ObservableQuerySSEUnsubscribeRequest)

protected ObservableQuerySSEUnsubscribeRequest(ObservableQuerySSEUnsubscribeRequest original)

Parameters

original ObservableQuerySSEUnsubscribeRequest

ObservableQuerySSEUnsubscribeRequest(string, string)

Initializes a legacy unsubscribe without a revision.

public ObservableQuerySSEUnsubscribeRequest(string connectionId, string queryId)

Parameters

connectionId string

The server-assigned SSE connection identifier.

queryId string

The client-assigned query identifier.

ObservableQuerySSEUnsubscribeRequest(string, string, long?)

Represents the POST body for unsubscribing from a query over the SSE hub transport.

[JsonConstructor]
public ObservableQuerySSEUnsubscribeRequest(string ConnectionId, string QueryId, long? Revision = null)

Parameters

ConnectionId string

The server-assigned SSE connection identifier.

QueryId string

The identifier of the subscription to cancel.

Revision long?

The optional exact revision to tombstone.

Properties

ConnectionId

The server-assigned SSE connection identifier.

public string ConnectionId { get; init; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

QueryId

The identifier of the subscription to cancel.

public string QueryId { get; init; }

Property Value

string

Revision

The optional exact revision to tombstone.

public long? Revision { get; init; }

Property Value

long?

Methods

Deconstruct(out string, out string)

Deconstructs the original two-value contract.

public void Deconstruct(out string connectionId, out string queryId)

Parameters

connectionId string

The server-assigned SSE connection identifier.

queryId string

The client-assigned query identifier.

Deconstruct(out string, out string, out long?)

public void Deconstruct(out string ConnectionId, out string QueryId, out long? Revision)

Parameters

ConnectionId string
QueryId string
Revision long?

Equals(ObservableQuerySSEUnsubscribeRequest?)

public virtual bool Equals(ObservableQuerySSEUnsubscribeRequest? other)

Parameters

other ObservableQuerySSEUnsubscribeRequest

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ObservableQuerySSEUnsubscribeRequest?, ObservableQuerySSEUnsubscribeRequest?)

public static bool operator ==(ObservableQuerySSEUnsubscribeRequest? left, ObservableQuerySSEUnsubscribeRequest? right)

Parameters

left ObservableQuerySSEUnsubscribeRequest
right ObservableQuerySSEUnsubscribeRequest

Returns

bool

operator !=(ObservableQuerySSEUnsubscribeRequest?, ObservableQuerySSEUnsubscribeRequest?)

public static bool operator !=(ObservableQuerySSEUnsubscribeRequest? left, ObservableQuerySSEUnsubscribeRequest? right)

Parameters

left ObservableQuerySSEUnsubscribeRequest
right ObservableQuerySSEUnsubscribeRequest

Returns

bool