Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Conversation

Tornhoof
Copy link
Contributor

Changes:

Copy link
Member

@Tratcher Tratcher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK with this if @glennc is.

}

/// <summary>
/// Ensures that the buffer is filled
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not that it is filled, but that it is not empty.

@glennc
Copy link
Member

glennc commented Mar 26, 2018

I am OK with this.

Copy link
Contributor

@Eilon Eilon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very nice! Assuming we do want to take this, it would be great to do the extra bit of cleanup for the docs.

{
internal class BufferedReadStream : Stream
/// <summary>
/// A Stream that wraps another stream and allows reading lines
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End the sentence with a period. Doc comments are kind of like HTML, where newlines are just whitespace. For that reason, every sentence needs to be a complete sentence because it will all show up as one paragraph in the final docs.

/// <summary>
/// Creates a new stream
/// </summary>
/// <param name="inner">Wrapped stream</param>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be The stream to wrap.?

}

/// <summary>
/// The currently buffered data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See earlier comment about ending sentences with periods. Please apply to all new doc comments.

/// <summary>
/// Ensures that the buffer is not empty
/// </summary>
/// <returns>buffer has data</returns>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For these types of docs, you can do something similar to this: https://github.com/aspnet/Mvc/blob/760c8f38678118734399c58c2dac981ea6e47046/src/Microsoft.AspNetCore.Mvc.Abstractions/Formatters/IOutputFormatter.cs#L18

        /// <returns>Returns <c>true</c> if the formatter can write the response; <c>false</c> otherwise.</returns>

/// <summary>
/// Ensures that a minimum amount of buffered data is available
/// </summary>
/// <param name="minCount">Minimum amount of buffered data</param>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The minimum...

/// Ensures that a minimum amount of buffered data is available
/// </summary>
/// <param name="minCount">Minimum amount of buffered data</param>
/// <returns>Minimum amount of buffered data available</returns>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The minimum...

@Tratcher Tratcher self-assigned this Mar 26, 2018
@Tratcher Tratcher modified the milestones: 2.1.0-preview2, 2.1.0 Mar 26, 2018
@Tratcher Tratcher merged commit e80d0b0 into aspnet:dev Mar 26, 2018
@Tornhoof Tornhoof deleted the BufferedReadStream branch March 26, 2018 23:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants