Share via


PersistentConnection Class

.NET Framework 4

Represents a connection between client and server.

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.SignalR.PersistentConnection
    Microsoft.AspNet.SignalR.Hubs.HubDispatcher

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

Syntax

'Declaration
Public MustInherit Class PersistentConnection
'Usage
Dim instance As PersistentConnection
public abstract class PersistentConnection
public ref class PersistentConnection abstract
[<AbstractClassAttribute>]
type PersistentConnection =  class end
public abstract class PersistentConnection

The PersistentConnection type exposes the following members.

Constructors

  Name Description
Protected method PersistentConnection

Top

Properties

  Name Description
Protected property AckHandler
Public property Connection Gets the IConnection for the PersistentConnection .
Protected property Counters
Public property Groups Gets the IConnectionGroupManager for the PersistentConnection .
Protected property JsonSerializer
Protected property MessageBus
Protected property ProtectedData
Protected property Trace
Protected property TraceManager
Protected property Transport

Top

Methods

  Name Description
Public method Authorize
Protected method AuthorizeRequest Called before every request and gives a user authorization to access the request.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Protected method GetSignals Returns the signals used in the PersistentConnection .
Public method GetType (Inherited from Object.)
Public method Initialize
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnConnected Called when a new connection is made.
Protected method OnDisconnected Called when a connection disconnects.
Protected method OnReceived Called when data is received from a connection.
Protected method OnReconnected Called when a connection reconnects after a timeout.
Protected method OnRejoiningGroups Called when a connection reconnects after a timeout to determine which groups should be rejoined.
Public method ProcessRequest Handles all requests for a PersistentConnection.
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 Namespace