PollingRequestHandler Class

.NET Framework 4.5

Represents a polling request handler.

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.SignalR.Client.Transports.PollingRequestHandler

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

Syntax

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

The PollingRequestHandler type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Public property OnAfterPoll Gets or sets a function that triggers before a new polling request is attempted. Passes in an exception if the Poll errored, null reference (Nothing in Visual Basic) otherwise. Expects the return as a task in order to allow modification of timing for subsequent polls.
Public property ResolveUrl Gets or sets a function used to generate the URL that is posted to for the poll.

Top

Methods

  Name Description
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 polling request handler.
Public method Stop Fully stops the polling request handler.
Public method ToString (Inherited from Object.)

Top

Events

  Name Description
Public event OnAbort Occurs when the current poll request was aborted, passing in the soon to be aborted request.
Public event OnError Occurs and passes the exception when the poll errors.
Public event OnMessage Sends the string based message to the callback.
Public event OnPolling Occurs when the polling request is in flight.
Public event PrepareRequest Allows modification of the IRequest parameter before using it in a poll.

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 Namespace