source/TestCommon/source/FunctionApp.TestCommon/EventHub/ResourceProvider/EventHubResourceProvider.cs
/// <summary>
/// Build a event hub with a name based on <paramref name="eventHubNamePrefix"/> and <see cref="RandomSuffix"/>.
/// </summary>
/// <param name="eventHubNamePrefix">The event hub name will start with this name.</param>
/// <returns>Event hub resource builder.</returns>
Build a event hub with a name based on  and .
Build a event hub with a name based on and .
public EventHubResourceBuilder BuildEventHub(string eventHubNamePrefix)
        {
            var eventHubName = BuildResourceName(eventHubNamePrefix);
            var createEventHubOptions = new Eventhub()
            {
                MessageRetentionInDays = 1,
                PartitionCount = 1,
            };
            return new EventHubResourceBuilder(this, eventHubName, createEventHubOptions);
        }
public EventHubResourceBuilder BuildEventHub ( string eventHubNamePrefix ) { var eventHubName = BuildResourceName ( eventHubNamePrefix ) ; var createEventHubOptions = new Eventhub ( ) { MessageRetentionInDays = 1 , PartitionCount = 1 , } ; return new EventHubResourceBuilder ( this , eventHubName , createEventHubOptions ) ; }
Build a event hub with a name based on  and .
Build a event hub with a name based on and .
Event hub resource builder.
Event hub resource builder .
eventHubNamePrefix
string
The event hub name will start with this name.
The event hub name will start with this name .