Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide batch object's event data enumerator publicly. #356

Merged
merged 5 commits into from
Feb 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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