@@ -18,38 +18,22 @@ namespace Microsoft.AspNet.Mvc
18
18
/// </summary>
19
19
public interface IOutputFormatter
20
20
{
21
- /// <summary>
22
- /// Gets the mutable collection of character encodings supported by
23
- /// this <see cref="IOutputFormatter"/> instance. The encodings are
24
- /// used when writing the data.
25
- /// </summary>
26
- List < Encoding > SupportedEncodings { get ; }
27
-
28
- /// <summary>
29
- /// Gets the mutable collection of <see cref="MediaTypeHeaderValue"/> elements supported by
30
- /// this <see cref="IOutputFormatter"/> instance.
31
- /// </summary>
32
- List < MediaTypeHeaderValue > SupportedMediaTypes { get ; }
33
-
34
21
/// <summary>
35
22
/// Determines whether this <see cref="IOutputFormatter"/> can serialize
36
23
/// an object of the specified type.
37
24
/// </summary>
38
25
/// <param name="context">The formatter context associated with the call.</param>
39
26
/// <param name="contentType">The desired contentType on the response.</param>
40
- /// <remarks>
41
- /// Subclasses can override this method to determine if the given content can be handled by this formatter.
42
- /// Subclasses should call the base implementation.
43
- /// </remarks>
44
- /// <returns>True if this <see cref="IOutputFormatter"/> is able to serialize the object
45
- /// represent by <paramref name="context"/>'s ObjectResult and supports the passed in
46
- /// <paramref name="contentType"/>.
27
+ /// <returns>True if this <see cref="IOutputFormatter"/> supports the passed in
28
+ /// <paramref name="contentType"/> and is able to serialize the object
29
+ /// represent by <paramref name="context"/>'s Object property.
47
30
/// False otherwise.</returns>
48
31
bool CanWriteResult ( OutputFormatterContext context , MediaTypeHeaderValue contentType ) ;
49
32
50
33
/// <summary>
51
- /// Writes given <paramref name="value"/> to the HttpResponse <paramref name="response "/> body stream.
34
+ /// Writes the object represented by <paramref name="context "/>'s Object property.
52
35
/// </summary>
36
+ /// <param name="context">The formatter context associated with the call.</param>
53
37
/// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
54
38
/// <returns>A Task that serializes the value to the <paramref name="context"/>'s response message.</returns>
55
39
Task WriteAsync ( OutputFormatterContext context , CancellationToken cancellationToken ) ;
0 commit comments