Method GetEventSourceAsync
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
stringOptional. 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.