Partajați prin


SseItem<T>(T, String) Constructor

Definition

Initializes the server-sent event.

public:
 SseItem(T data, System::String ^ eventType);
public SseItem (T data, string eventType);
new System.Net.ServerSentEvents.SseItem<'T> : 'T * string -> System.Net.ServerSentEvents.SseItem<'T>
Public Sub New (data As T, eventType As String)

Parameters

data
T

The event's payload.

eventType
String

The event's type.

Applies to