Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
/MvcPublic archive
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

ValueTask<T> response body is serializing ValueTask instead of T #6040

Closed
Assignees
SteveSandersonMS
@redknightlois

Description

@redknightlois

I recently upgraded a CoreCLR 1.1 codebase to C# 7.0 and tried to change the output of async controllers to diminish allocation pressure fromTask<T> toValueTask<T>. However the output of MVC is serializingValueTask<T> instead ofT

The response was supposed to be:

[  {"code":"code","displayName":"Coding"  }]

But when changed to ValueTask it ends up being:

{"isCompleted":false,"isCompletedSuccessfully":false,"isFaulted":false,"isCanceled":false,"result": {"value": [      {"code":"code","displayName":"Coding"      }    ],"formatters": [],"contentTypes": [],"declaredType":null,"statusCode":200  }}

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp