EventSourceStreamReader Class

.NET Framework 4.5

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

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.SignalR.Client.Transports.ServerSentEvents.EventSourceStreamReader

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

Syntax

'Declaration
Public Class EventSourceStreamReader
'Usage
Dim instance As EventSourceStreamReader
public class EventSourceStreamReader
public ref class EventSourceStreamReader
type EventSourceStreamReader =  class end
public class EventSourceStreamReader

The EventSourceStreamReader type exposes the following members.

Constructors

  Name Description
Public method EventSourceStreamReader Initializes a new instance of the EventSourceStreamReader class.

Top

Properties

  Name Description
Public property Closed Invoked when the reader is closed while in the Processing state.
Public property Disabled Invoked when the reader enters the Stopped state whether or not it was previously in the Processing state.
Public property Message Invoked when there's a message if received in the stream.
Public property Opened Invoked when the connection is open.

Top

Methods

  Name Description
Public method Close Closes the connection and the underlying stream.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Start Starts the reader.
Public method ToString (Inherited from Object.)

Top

Thread Safety

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

See Also

Reference

Microsoft.AspNet.SignalR.Client.Transports.ServerSentEvents Namespace