Skip to content

Commit

Permalink
Provide batch object's event data enumerator publicly. (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
serkantkaraca authored Feb 13, 2019
1 parent 293b911 commit 65167a5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Microsoft.Azure.EventHubs/EventDataBatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,9 @@ void ThrowIfDisposed()
}
}

/// <summary>Converts the batch to an IEnumerable of EventData objects that can be accepted by the
/// SendBatchAsync method.</summary>
/// <returns>Returns an IEnumerable of EventData objects.</returns>
internal IEnumerable<EventData> ToEnumerable()
/// <summary>Returns the enumerator of EventData objects in the batch.</summary>
/// <returns>IEnumerable of EventData objects.</returns>
public IEnumerable<EventData> ToEnumerable()
{
this.ThrowIfDisposed();
return this.eventDataList;
Expand Down

0 comments on commit 65167a5

Please sign in to comment.