LongPollingTransport.OnStart Method
.NET Framework 4This member overrides HttpBasedTransport.OnStart(IConnection, String, CancellationToken, Action, Action<Exception>).
Namespace: Microsoft.AspNet.SignalR.Client.Transports
Assembly: Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)
Syntax
'Declaration
Protected Overrides Sub OnStart ( _
connection As IConnection, _
data As String, _
disconnectToken As CancellationToken, _
initializeCallback As Action, _
errorCallback As Action(Of Exception) _
)
'Usage
Dim connection As IConnection
Dim data As String
Dim disconnectToken As CancellationToken
Dim initializeCallback As Action
Dim errorCallback As Action(Of Exception)
Me.OnStart(connection, data, disconnectToken, _
initializeCallback, errorCallback)
protected override void OnStart(
IConnection connection,
string data,
CancellationToken disconnectToken,
Action initializeCallback,
Action<Exception> errorCallback
)
protected:
virtual void OnStart(
IConnection^ connection,
String^ data,
CancellationToken disconnectToken,
Action^ initializeCallback,
Action<Exception^>^ errorCallback
) override
abstract OnStart :
connection:IConnection *
data:string *
disconnectToken:CancellationToken *
initializeCallback:Action *
errorCallback:Action<Exception> -> unit
override OnStart :
connection:IConnection *
data:string *
disconnectToken:CancellationToken *
initializeCallback:Action *
errorCallback:Action<Exception> -> unit
protected override function OnStart(
connection : IConnection,
data : String,
disconnectToken : CancellationToken,
initializeCallback : Action,
errorCallback : Action<Exception>
)
Parameters
- connection
Type: Microsoft.AspNet.SignalR.Client.IConnection
- data
Type: System.String
- disconnectToken
Type: System.Threading.CancellationToken
- initializeCallback
Type: System.Action
- errorCallback
Type: System.Action<Exception>