# NoOpStreamDeliveryFailureHandler Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.noopstreamdeliveryfailurehandler/)

## OnDeliveryFailure(GuidId, string, StreamId, StreamSequenceToken) {#ondeliveryfailure-orleans-runtime-guidid-string-orleans-runtime-streamid-orleans-89e41f54}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.noopstreamdeliveryfailurehandler/methods/ondeliveryfailure-orleans-runtime-guidid-string-orleans-runtime-streamid-orleans-89e41f54/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/PersistentStreams/NoOpStreamFailureHandler.cs#L35)

```csharp
public Task OnDeliveryFailure(GuidId subscriptionId, string streamProviderName, StreamId streamId, StreamSequenceToken sequenceToken)
```

Called once all measures to deliver an event to a consumer have been exhausted.

### Parameters

- `subscriptionId` (`GuidId`): The subscription identifier.
- `streamProviderName` (`string`): Name of the stream provider.
- `streamId` (`StreamId`): The stream identity.
- `sequenceToken` (`StreamSequenceToken`): The sequence token.

### Returns

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

## OnSubscriptionFailure(GuidId, string, StreamId, StreamSequenceToken) {#onsubscriptionfailure-orleans-runtime-guidid-string-orleans-runtime-streamid-orl-7d3afc1f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.noopstreamdeliveryfailurehandler/methods/onsubscriptionfailure-orleans-runtime-guidid-string-orleans-runtime-streamid-orl-7d3afc1f/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/PersistentStreams/NoOpStreamFailureHandler.cs#L42)

```csharp
public Task OnSubscriptionFailure(GuidId subscriptionId, string streamProviderName, StreamId streamId, StreamSequenceToken sequenceToken)
```

Should be called when establishing a subscription failed.

### Parameters

- `subscriptionId` (`GuidId`): The subscription identifier.
- `streamProviderName` (`string`): Name of the stream provider.
- `streamId` (`StreamId`): The stream identity.
- `sequenceToken` (`StreamSequenceToken`): The sequence token.

### Returns

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