HubPipelineModule.OnIncomingError Method

.NET Framework 4

This is called when an uncaught exception is thrown by a server-side hub method or the incoming component of a module added later to the IHubPipeline . Observing the exception using this method will not prevent it from bubbling up to other modules.

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

Syntax

'Declaration
Protected Overridable Sub OnIncomingError ( _
    ex As Exception, _
    context As IHubIncomingInvokerContext _
)
'Usage
Dim ex As Exception 
Dim context As IHubIncomingInvokerContext 

Me.OnIncomingError(ex, context)
protected virtual void OnIncomingError(
    Exception ex,
    IHubIncomingInvokerContext context
)
protected:
virtual void OnIncomingError(
    Exception^ ex, 
    IHubIncomingInvokerContext^ context
)
abstract OnIncomingError : 
        ex:Exception * 
        context:IHubIncomingInvokerContext -> unit  
override OnIncomingError : 
        ex:Exception * 
        context:IHubIncomingInvokerContext -> unit
protected function OnIncomingError(
    ex : Exception, 
    context : IHubIncomingInvokerContext
)

Parameters

  • ex
    Type: System.Exception
    The exception that was thrown during the server-side invocation.

See Also

Reference

HubPipelineModule Class

Microsoft.AspNet.SignalR.Hubs Namespace