/
How-To inspect an Event Hub
How-To inspect an Event Hub
Many Event Hub operations take place within the scope of a specific partition. Because partitions are owned by the Event Hub, their names are assigned at the time of creation : azure-sdk-for-net/README.md at main · Azure/azure-sdk-for-net · GitHub
var connectionString = "<< CONNECTION STRING FOR THE EVENT HUBS NAMESPACE >>";
var eventHubName = "<< NAME OF THE EVENT HUB >>";
await using (var producer = new EventHubProducerClient(connectionString, eventHubName))
{
string[] partitionIds = await producer.GetPartitionIdsAsync();
}
, multiple selections available,
Related content
How-To read events from an Event Hub partition
How-To read events from an Event Hub partition
More like this
How-To read events from an Event Hub
How-To read events from an Event Hub
More like this
How-To publish events to an Event Hub
How-To publish events to an Event Hub
More like this
Understanding Partitions
Understanding Partitions
More like this
Understanding Event Consumers
Understanding Event Consumers
More like this
How-To use an Active Directory with the Event Hub Clients
How-To use an Active Directory with the Event Hub Clients
More like this