Share via


SseFormatter Class

Definition

Provides methods for formatting server-sent events.

public ref class SseFormatter abstract sealed
public static class SseFormatter
type SseFormatter = class
Public Class SseFormatter
Inheritance
SseFormatter

Methods

WriteAsync(IAsyncEnumerable<SseItem<String>>, Stream, CancellationToken)

Writes the source of server-sent events to the destination stream.

WriteAsync<T>(IAsyncEnumerable<SseItem<T>>, Stream, Action<SseItem<T>,IBufferWriter<Byte>>, CancellationToken)

Writes the source of server-sent events to the destination stream.

Applies to