-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Conversation
/// <param name="context">The <see cref="InputFormatterContext"/> associated with the call.</param> | ||
/// <returns>A task which can read the request body.</returns> | ||
public abstract Task<object> ReadRequestBodyAsync(InputFormatterContext context); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should you also move the SelectCharacterEncoding
method to this base class?...Ideally I would like to see a test where you create a custom formatter using this base type just to see how the experience would be like...currently that picture is missing...please update the PR with it..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved. Will update tests shortly.
3fe347a
to
a3f04aa
Compare
/// <summary> | ||
/// Initializes a new instance of the <see cref="InputFormatter"/> class. | ||
/// </summary> | ||
protected InputFormatter() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't need this constructor.
Instead see below comment
when comments are addressed and @kichalla is happy. Lets discuss having the |
@@ -0,0 +1,111 @@ | |||
using System; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add license header
a3f04aa
to
13e1c9d
Compare
Issue - #1222
@yishaigalatzer @kichalla @harshgMSFT