PollingRequestHandler Class

.NET Framework 4.5

Represents a polling request handler.

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)

public ref class PollingRequestHandler

The PollingRequestHandler type exposes the following members.

  NameDescription
Public methodPollingRequestHandlerInitializes a new instance of the PollingRequestHandler class.
Top

  NameDescription
Public propertyOnAfterPollGets or sets a function that triggers before a new polling request is attempted. Passes in an exception if the Poll errored, nullptr otherwise. Expects the return as a task in order to allow modification of timing for subsequent polls.
Public propertyResolveUrlGets or sets a function used to generate the URL that is posted to for the poll.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStart Starts the polling request handler.
Public methodStop Fully stops the polling request handler.
Public methodToString (Inherited from Object.)
Top

  NameDescription
Public eventOnAbortOccurs when the current poll request was aborted, passing in the soon to be aborted request.
Public eventOnErrorOccurs and passes the exception when the poll errors.
Public eventOnMessage Sends the string based message to the callback.
Public eventOnPolling Occurs when the polling request is in flight.
Public eventPrepareRequest Allows modification of the IRequest parameter before using it in a poll.
Top

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