SseItem<T> Struct

Definition

Represents a server-sent event.

C#
public readonly struct SseItem<T>

Type Parameters

T

Specifies the type of data payload in the event.

Inheritance
SseItem<T>

Constructors

SseItem<T>(T, String)

Initializes the server-sent event.

Properties

Data

Gets the event's payload.

EventId

Gets the event's id.

EventType

Gets the event's type.

ReconnectionInterval

Gets the event's retry interval.

Applies to

Proizvod Verzije
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)