SseResult Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a Server-Sent Events (SSE) result for streaming data to HTTP clients.
public sealed class SseResult : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult
type SseResult = class
interface IResult
interface IStatusCodeHttpResult
interface IContentTypeHttpResult
Public NotInheritable Class SseResult
Implements IContentTypeHttpResult, IResult, IStatusCodeHttpResult
- Inheritance
-
SseResult
- Implements
Constructors
| Name | Description |
|---|---|
| SseResult(IAsyncEnumerable<SseFrame>, Nullable<TimeSpan>) |
Represents a Server-Sent Events (SSE) result for streaming data to HTTP clients. |
Properties
| Name | Description |
|---|---|
| ContentType |
Gets the content type for the result. |
| StatusCode |
Gets the HTTP status code for the result. |
Methods
| Name | Description |
|---|---|
| ExecuteAsync(HttpContext) |
Executes the SSE result by streaming frames to the HTTP response. |