From 65167a54ece6aba352091f59012fb438ba996a48 Mon Sep 17 00:00:00 2001 From: Serkant Karaca Date: Wed, 13 Feb 2019 13:34:55 -0800 Subject: [PATCH] Provide batch object's event data enumerator publicly. (#356) --- src/Microsoft.Azure.EventHubs/EventDataBatch.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.Azure.EventHubs/EventDataBatch.cs b/src/Microsoft.Azure.EventHubs/EventDataBatch.cs index e21e3b6..6971df9 100644 --- a/src/Microsoft.Azure.EventHubs/EventDataBatch.cs +++ b/src/Microsoft.Azure.EventHubs/EventDataBatch.cs @@ -125,10 +125,9 @@ void ThrowIfDisposed() } } - /// Converts the batch to an IEnumerable of EventData objects that can be accepted by the - /// SendBatchAsync method. - /// Returns an IEnumerable of EventData objects. - internal IEnumerable ToEnumerable() + /// Returns the enumerator of EventData objects in the batch. + /// IEnumerable of EventData objects. + public IEnumerable ToEnumerable() { this.ThrowIfDisposed(); return this.eventDataList;