EventSourceStreamReader Class

Visual Studio 2010
.NET Framework 4

Event source implementation for .NET. This isn't to the spec but it's enough to support SignalR's server.


Namespace:  Microsoft.AspNet.SignalR.Client.Transports.ServerSentEvents
Assembly:  Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)

public class EventSourceStreamReader

The EventSourceStreamReader type exposes the following members.

Public methodEventSourceStreamReaderInitializes a new instance of the EventSourceStreamReader class.

Public propertyClosedGets or sets the action to invoke when the reader is closed while in the Processing state.
Public propertyDisabled
Public propertyMessageGets or sets the action to invoke when there is a message to be received in the stream.
Public propertyOpenedGets or sets the action to invoke when the connection is open.

Public methodCloseCloses the connection and the underlying stream.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStartStarts the reader.
Public methodToString (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.