Skip to content

IStreamFailureHandler Methods

Functionality for handling stream failures.

OnDeliveryFailure(GuidId, string, StreamId, StreamSequenceToken)

abstract
public abstract Task OnDeliveryFailure(GuidId subscriptionId, string streamProviderName, StreamId streamIdentity, StreamSequenceToken sequenceToken)
Called once all measures to deliver an event to a consumer have been exhausted.

Parameters

subscriptionIdGuidId
The subscription identifier.
streamProviderNamestring
Name of the stream provider.
streamIdentityStreamId
The stream identity.
sequenceTokenStreamSequenceToken
The sequence token.

Returns

A System.Threading.Tasks.Task representing the operation.

OnSubscriptionFailure(GuidId, string, StreamId, StreamSequenceToken)

abstract
public abstract Task OnSubscriptionFailure(GuidId subscriptionId, string streamProviderName, StreamId streamIdentity, StreamSequenceToken sequenceToken)
Should be called when establishing a subscription failed.

Parameters

subscriptionIdGuidId
The subscription identifier.
streamProviderNamestring
Name of the stream provider.
streamIdentityStreamId
The stream identity.
sequenceTokenStreamSequenceToken
The sequence token.

Returns

A System.Threading.Tasks.Task representing the operation.