Share via


ServerSentEventsResult<T> Class

Definition

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)

Applies to