PersistentResponse Class

.NET Framework 4

Represents a response to a connection.

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.SignalR.Transports.PersistentResponse

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

Syntax

'Declaration
Public NotInheritable Class PersistentResponse _
    Implements IJsonWritable
'Usage
Dim instance As PersistentResponse
public sealed class PersistentResponse : IJsonWritable
public ref class PersistentResponse sealed : IJsonWritable
[<SealedAttribute>]
type PersistentResponse =  
    class 
        interface IJsonWritable 
    end
public final class PersistentResponse implements IJsonWritable

The PersistentResponse type exposes the following members.

Constructors

  Name Description
Public method PersistentResponse() Creates a new instance of PersistentResponse.
Public method PersistentResponse(Func<Message, Boolean>) Creates a new instance of PersistentResponse.

Top

Properties

  Name Description
Public property Aborted Gets or sets a value that indicates whether the connection was forcibly closed.
Public property Disconnect Gets or sets a value that indicates whether the connection receives a disconnect command.
Public property ExcludeFilter Gets or sets a filter that determines whether messages should be written to the client.
Public property GroupsToken Signed token representing the list of groups. Updates on change.
Public property LongPollDelay Gets or sets the time the long polling client should wait before reestablishing a connection if no data is received.
Public property MessageId Gets or sets the id of the last message in the connection received.
Public property Messages Gets or sets the list of messages to be sent to the receiving connection.
Public property TimedOut Gets or sets a value that indicates whether the connection timed out.
Public property TotalCount Gets or sets the total count of the messages sent the receiving connection.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IJsonWritable.WriteJson Serializes only the necessary components of the PersistentResponse to JSON using Json.NET’s JsonTextWriter to improve performance.

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.Transports Namespace