# SubscriptionRegistered Constructors

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

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

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

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

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

Event payload for when a stream subscription is durably registered in pubsub state.

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