Table of Contents

Method GetEventSourceAsync

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

GetEventSourceAsync(string?)

Asynchronously gets an Event Source interface for this request. Calling this method will put this HttpRequest instance in its event source listening state.

public Task<HttpRequestEventSource> GetEventSourceAsync(string? identifier = null)

Parameters

identifier string

Optional. Defines a label to the EventStream connection, useful for finding this connection's reference later.

Returns

Task<HttpRequestEventSource>

A Task that represents the asynchronous operation, containing an HttpRequestEventSource instance representing the event source for this request.