Class HttpRequestEventSource
Namespace: Sisk.Core.Http.Streams
Assembly: Sisk.Core.dll
An HttpRequestEventSource instance opens a persistent connection to the request, which sends events in text/event-stream format.
public sealed class HttpRequestEventSource : IDisposable
Inheritance
object ← HttpRequestEventSource
Implements
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
Gets the HttpRequest object which created this Event Source instance.
Gets an unique identifier label to this EventStream connection, useful for finding this connection's reference later.
Gets an boolean indicating if this connection is open and this instance can send messages.
Gets the HttpStreamPingPolicy for this HTTP event source connection.
Gets an integer indicating the total bytes sent by this instance to the client.
Methods
Sends an header to the streaming context.
Cancels the sending queue from sending pending messages and clears the queue.
Closes the event listener and it's connection.
Flushes and releases the used resources of this class instance.
Asynchronously waits for the connection to close before continuing execution. This method is released when either the client or the server reaches an sending failure.
Sends an event to the client over the HTTP connection.
Asynchronously sends an event to the client over the HTTP connection.
Asynchronously waits for the connection to close before continuing execution with an maximum keep alive timeout. This method is released when either the client or the server reaches an sending failure.
WithPing(Action<HttpStreamPingPolicy>)
Configures the ping policy for this instance of HTTP Event Source.
                                    English
                                
                                    Русский
                                
                                    Português
                                
                                    Español
                                
                                    Deutsch
                                
                                    中文 (简体)
                                
                                    日本語