private static async Task MainAsync(string[] args)
        {
            Console.WriteLine("Registering EventProcessor...");

            // Ownership of a partition to an EPH instance (or a consumer) is tracked through the Azure Storage account that is provided for tracking.
            // https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-event-processor-host
            var eventProcessorHost = new Microsoft.Azure.EventHubs.Processor.EventProcessorHost(
                EventHubName,
                PartitionReceiver.DefaultConsumerGroupName,
                EventHubNamespaceConnectionString,
                StorageConnectionString,
                StorageContainerName);

            // Registers the Event Processor Host and starts receiving messages
            await eventProcessorHost.RegisterEventProcessorAsync <SimpleEventProcessor>();

            Console.WriteLine("Receiving. Press enter key to stop worker.");
            Console.ReadLine();

            // Disposes of the Event Processor Host
            await eventProcessorHost.UnregisterEventProcessorAsync();
        }