Fix warning when building because of the missing documentation (#15543)

This commit is contained in:
Jean-François Côté 2023-05-16 12:44:58 -04:00 committed by GitHub
parent 63ac3e1039
commit 842ca3db69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 81 additions and 54 deletions

View File

@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
namespace {{packageName}}.Formatters namespace {{packageName}}.Formatters
{ {
// Input Type Formatter to allow model binding to Streams /// <inheritdoc />
public class InputFormatterStream : InputFormatter public class InputFormatterStream : InputFormatter
{ {
/// <inheritdoc />
public InputFormatterStream() public InputFormatterStream()
{ {
SupportedMediaTypes.Add("application/octet-stream"); SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg"); SupportedMediaTypes.Add("image/jpeg");
} }
/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
/// <inheritdoc />
protected override bool CanReadType(Type type) protected override bool CanReadType(Type type)
{ {
if (type == typeof(Stream)) if (type == typeof(Stream))
@ -23,10 +31,5 @@ namespace {{packageName}}.Formatters
return false; return false;
} }
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
} }
} }

View File

@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
namespace Org.OpenAPITools.Formatters namespace Org.OpenAPITools.Formatters
{ {
// Input Type Formatter to allow model binding to Streams /// <inheritdoc />
public class InputFormatterStream : InputFormatter public class InputFormatterStream : InputFormatter
{ {
/// <inheritdoc />
public InputFormatterStream() public InputFormatterStream()
{ {
SupportedMediaTypes.Add("application/octet-stream"); SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg"); SupportedMediaTypes.Add("image/jpeg");
} }
/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
/// <inheritdoc />
protected override bool CanReadType(Type type) protected override bool CanReadType(Type type)
{ {
if (type == typeof(Stream)) if (type == typeof(Stream))
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
return false; return false;
} }
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
} }
} }

View File

@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
namespace Org.OpenAPITools.Formatters namespace Org.OpenAPITools.Formatters
{ {
// Input Type Formatter to allow model binding to Streams /// <inheritdoc />
public class InputFormatterStream : InputFormatter public class InputFormatterStream : InputFormatter
{ {
/// <inheritdoc />
public InputFormatterStream() public InputFormatterStream()
{ {
SupportedMediaTypes.Add("application/octet-stream"); SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg"); SupportedMediaTypes.Add("image/jpeg");
} }
/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
/// <inheritdoc />
protected override bool CanReadType(Type type) protected override bool CanReadType(Type type)
{ {
if (type == typeof(Stream)) if (type == typeof(Stream))
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
return false; return false;
} }
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
} }
} }

View File

@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
namespace Org.OpenAPITools.Formatters namespace Org.OpenAPITools.Formatters
{ {
// Input Type Formatter to allow model binding to Streams /// <inheritdoc />
public class InputFormatterStream : InputFormatter public class InputFormatterStream : InputFormatter
{ {
/// <inheritdoc />
public InputFormatterStream() public InputFormatterStream()
{ {
SupportedMediaTypes.Add("application/octet-stream"); SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg"); SupportedMediaTypes.Add("image/jpeg");
} }
/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
/// <inheritdoc />
protected override bool CanReadType(Type type) protected override bool CanReadType(Type type)
{ {
if (type == typeof(Stream)) if (type == typeof(Stream))
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
return false; return false;
} }
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
} }
} }

View File

@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
namespace Org.OpenAPITools.Formatters namespace Org.OpenAPITools.Formatters
{ {
// Input Type Formatter to allow model binding to Streams /// <inheritdoc />
public class InputFormatterStream : InputFormatter public class InputFormatterStream : InputFormatter
{ {
/// <inheritdoc />
public InputFormatterStream() public InputFormatterStream()
{ {
SupportedMediaTypes.Add("application/octet-stream"); SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg"); SupportedMediaTypes.Add("image/jpeg");
} }
/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
/// <inheritdoc />
protected override bool CanReadType(Type type) protected override bool CanReadType(Type type)
{ {
if (type == typeof(Stream)) if (type == typeof(Stream))
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
return false; return false;
} }
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
} }
} }

View File

@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
namespace Org.OpenAPITools.Formatters namespace Org.OpenAPITools.Formatters
{ {
// Input Type Formatter to allow model binding to Streams /// <inheritdoc />
public class InputFormatterStream : InputFormatter public class InputFormatterStream : InputFormatter
{ {
/// <inheritdoc />
public InputFormatterStream() public InputFormatterStream()
{ {
SupportedMediaTypes.Add("application/octet-stream"); SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg"); SupportedMediaTypes.Add("image/jpeg");
} }
/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
/// <inheritdoc />
protected override bool CanReadType(Type type) protected override bool CanReadType(Type type)
{ {
if (type == typeof(Stream)) if (type == typeof(Stream))
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
return false; return false;
} }
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
} }
} }

View File

@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
namespace Org.OpenAPITools.Formatters namespace Org.OpenAPITools.Formatters
{ {
// Input Type Formatter to allow model binding to Streams /// <inheritdoc />
public class InputFormatterStream : InputFormatter public class InputFormatterStream : InputFormatter
{ {
/// <inheritdoc />
public InputFormatterStream() public InputFormatterStream()
{ {
SupportedMediaTypes.Add("application/octet-stream"); SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg"); SupportedMediaTypes.Add("image/jpeg");
} }
/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
/// <inheritdoc />
protected override bool CanReadType(Type type) protected override bool CanReadType(Type type)
{ {
if (type == typeof(Stream)) if (type == typeof(Stream))
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
return false; return false;
} }
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
} }
} }

View File

@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
namespace Org.OpenAPITools.Formatters namespace Org.OpenAPITools.Formatters
{ {
// Input Type Formatter to allow model binding to Streams /// <inheritdoc />
public class InputFormatterStream : InputFormatter public class InputFormatterStream : InputFormatter
{ {
/// <inheritdoc />
public InputFormatterStream() public InputFormatterStream()
{ {
SupportedMediaTypes.Add("application/octet-stream"); SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg"); SupportedMediaTypes.Add("image/jpeg");
} }
/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
/// <inheritdoc />
protected override bool CanReadType(Type type) protected override bool CanReadType(Type type)
{ {
if (type == typeof(Stream)) if (type == typeof(Stream))
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
return false; return false;
} }
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
} }
} }

View File

@ -5,15 +5,23 @@ using Microsoft.AspNetCore.Mvc.Formatters;
namespace Org.OpenAPITools.Formatters namespace Org.OpenAPITools.Formatters
{ {
// Input Type Formatter to allow model binding to Streams /// <inheritdoc />
public class InputFormatterStream : InputFormatter public class InputFormatterStream : InputFormatter
{ {
/// <inheritdoc />
public InputFormatterStream() public InputFormatterStream()
{ {
SupportedMediaTypes.Add("application/octet-stream"); SupportedMediaTypes.Add("application/octet-stream");
SupportedMediaTypes.Add("image/jpeg"); SupportedMediaTypes.Add("image/jpeg");
} }
/// <inheritdoc />
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
/// <inheritdoc />
protected override bool CanReadType(Type type) protected override bool CanReadType(Type type)
{ {
if (type == typeof(Stream)) if (type == typeof(Stream))
@ -23,10 +31,5 @@ namespace Org.OpenAPITools.Formatters
return false; return false;
} }
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
return InputFormatterResult.SuccessAsync(context.HttpContext.Request.Body);
}
} }
} }