# ImplicitConsumerGrainExtensions Methods

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

## GetImplicitStreamIdentity(IGrainWithGuidCompoundKey) {#getimplicitstreamidentity-this-orleans-igrainwithguidcompoundkey-ddd59762}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.implicitconsumergrainextensions/methods/getimplicitstreamidentity-this-orleans-igrainwithguidcompoundkey-ddd59762/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Core/ImplicitConsumerGrainExtensions.cs#L17-L18)

```csharp
public static StreamIdentity GetImplicitStreamIdentity(this IGrainWithGuidCompoundKey grain)
```

Constructs [StreamIdentity](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamidentity/) of the stream that the grain is implicitly subscribed to.

### Parameters

- `grain` (`IGrainWithGuidCompoundKey`): The implicitly subscribed grain.

### Returns

The stream identity (key + namespace).
