# EventHubQueueCache.TryGetCursor(StreamId, StreamSequenceToken?)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.eventhubqueuecache/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.eventhubqueuecache/methods/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/EventHubQueueCache.cs#L153)

```csharp
public QueueCacheCursorResult<object> TryGetCursor(StreamId streamId, StreamSequenceToken? sequenceToken)
```

Attempts to get a cursor into the cache to read events from a stream.

### Parameters

- `streamId` (`StreamId`): The stream identifier.
- `sequenceToken` (`StreamSequenceToken?`): The position from which to begin reading.

### Returns

A successful result containing the acquired cursor, or a cache-miss result containing the unavailable position and current cache bounds.
