C# Class Microsoft.AspNet.SignalR.Client.Transports.ServerSentEvents.EventSourceStreamReader

Event source implementation for .NET. This isn't to the spec but it's enough to support SignalR's server.
Exibir arquivo Open project: SignalR/SignalR Class Usage Examples

Public Methods

Method Description
EventSourceStreamReader ( IConnection connection, Stream stream ) : System

Initializes a new instance of the EventSourceStreamReader class.

Private Methods

Method Description
OnMessage ( SseEvent sseEvent ) : void
ProcessBuffer ( ArraySegment readBuffer ) : void

Method Details

EventSourceStreamReader() public method

Initializes a new instance of the EventSourceStreamReader class.
public EventSourceStreamReader ( IConnection connection, Stream stream ) : System
connection IConnection The connection associated with this event source
stream Stream The stream to read event source payloads from.
return System