# SubscriptionAdded Constructors

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

## SubscriptionAdded(string, StreamId, Guid, GrainId, SiloAddress?) {#constructor-string-orleans-runtime-streamid-system-guid-orleans-runtime-grainid-2deb2abb}

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

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

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

Event payload for when a stream subscription is added.

### 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 subscription.
