EventSourceStreamReader Class
.NET Framework 4
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 | |
---|---|---|
EventSourceStreamReader | Initializes a new instance of the EventSourceStreamReader class. |
Top
Properties
Name | Description | |
---|---|---|
Closed | Gets or sets the action to invoke when the reader is closed while in the Processing state. | |
Disabled | ||
Message | Gets or sets the action to invoke when there is a message to be received in the stream. | |
Opened | Gets or sets the action to invoke when the connection is open. |
Top
Methods
Name | Description | |
---|---|---|
Close | Closes the connection and the underlying stream. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
Start | Starts the reader. | |
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