# SubscriptionAttached Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streaming.diagnostics.streamingevents.subscriptionattached/)

## SubscriptionAttached(string, StreamId, Guid, GrainId, SiloAddress?) {#constructor-string-orleans-runtime-streamid-system-guid-orleans-runtime-grainid-7ded7dd5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streaming.diagnostics.streamingevents.subscriptionattached/constructors/constructor-string-orleans-runtime-streamid-system-guid-orleans-runtime-grainid-7ded7dd5/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Diagnostics/StreamingEvents.cs#L189-L204)

```csharp
public SubscriptionAttached(string streamProvider, StreamId streamId, Guid subscriptionId, GrainId consumerGrainId, SiloAddress? siloAddress)
```

Event payload for when a stream subscription is attached to a pulling agent and ready to receive data.

### Parameters

- `streamProvider` (`string`): The name of the stream provider.
- `streamId` (`StreamId`): The stream ID.
- `subscriptionId` (`Guid`): The subscription ID.
- `consumerGrainId` (`GrainId`): The grain ID of the consumer.
- `siloAddress` (`SiloAddress?`): The address of the silo handling this attachment.
