ServerSentEventsResult<T> 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 result that writes a stream of server-sent events to the response.
public sealed class ServerSentEventsResult<T> : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider
type ServerSentEventsResult<'T> = class
interface IResult
interface IEndpointMetadataProvider
interface IStatusCodeHttpResult
Public NotInheritable Class ServerSentEventsResult(Of T)
Implements IEndpointMetadataProvider, IResult, IStatusCodeHttpResult
Type Parameters
- T
The underlying type of the events emitted.
- Inheritance
-
ServerSentEventsResult<T>
- Implements
Properties
StatusCode |
Gets the HTTP status code. |
Methods
ExecuteAsync(HttpContext) |
Write an HTTP response reflecting the result. |
Explicit Interface Implementations
IEndpointMetadataProvider.PopulateMetadata(MethodInfo, EndpointBuilder) |