# StreamSubscriptionHandle&lt;T&gt; Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamsubscriptionhandle-1/)

## Equals(StreamSubscriptionHandle&lt;T&gt;) {#equals-orleans-streams-streamsubscriptionhandle-t-2f1b9a28}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamsubscriptionhandle-1/methods/equals-orleans-streams-streamsubscriptionhandle-t-2f1b9a28/)

```csharp
public abstract bool Equals(StreamSubscriptionHandle<T> other)
```

Indicates whether the current object is equal to another object of the same type.

### Parameters

- `other` (`StreamSubscriptionHandle<T>`): An object to compare with this object.

### Returns

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

## ResumeAsync(IAsyncBatchObserver&lt;T&gt;, StreamSequenceToken) {#resumeasync-orleans-streams-iasyncbatchobserver-t-orleans-streams-streamsequence-c7865489}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamsubscriptionhandle-1/methods/resumeasync-orleans-streams-iasyncbatchobserver-t-orleans-streams-streamsequence-c7865489/)

```csharp
public abstract Task<StreamSubscriptionHandle<T>> ResumeAsync(IAsyncBatchObserver<T> observer, StreamSequenceToken token = null)
```

Resume batch consumption from a subscription to a stream.

### Parameters

- `observer` (`IAsyncBatchObserver<T>`): The batcj bserver object.
- `token` (`StreamSequenceToken`): The stream sequence to be used as an offset to start the subscription from.

### Returns

The new stream subscription handle.

## ResumeAsync(IAsyncObserver&lt;T&gt;, StreamSequenceToken) {#resumeasync-orleans-streams-iasyncobserver-t-orleans-streams-streamsequencetoken-0c0bc447}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamsubscriptionhandle-1/methods/resumeasync-orleans-streams-iasyncobserver-t-orleans-streams-streamsequencetoken-0c0bc447/)

```csharp
public abstract Task<StreamSubscriptionHandle<T>> ResumeAsync(IAsyncObserver<T> observer, StreamSequenceToken token = null)
```

Resumed consumption from a subscription to a stream.

### Parameters

- `observer` (`IAsyncObserver<T>`): The observer object.
- `token` (`StreamSequenceToken`): The stream sequence to be used as an offset to start the subscription from.

### Returns

The new stream subscription handle.

## UnsubscribeAsync {#unsubscribeasync-2c20e9fa}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamsubscriptionhandle-1/methods/unsubscribeasync-2c20e9fa/)

```csharp
public abstract Task UnsubscribeAsync()
```

Unsubscribe a stream consumer from this observable.

### Returns

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