Class ContentResult
- Namespace
- Fdyay.IdentityServer.Hosting
- Assembly
- Fdyay.IdentityServer.AspNetCore.dll
Writes a plain-text response body.
public sealed class ContentResult : IEndpointResult
- Inheritance
-
ContentResult
- Implements
- Inherited Members
Constructors
ContentResult(string, string)
Holds the body to write.
public ContentResult(string content, string contentType = "text/plain; charset=UTF-8")
Parameters
contentstringThe response body, written as UTF-8.
contentTypestringThe response's content type. Defaults to
text/plain; charset=UTF-8.
Methods
ExecuteAsync(HttpContext)
Writes the result to the response.
public Task ExecuteAsync(HttpContext context)
Parameters
contextHttpContextThe request whose response is written.