HubPipelineModule.OnBeforeIncoming Method

.NET Framework 4

This method is called before the incoming components of any modules added later to the IHubPipeline are executed. If this returns false, then those later-added modules and the server-side hub method invocation will not be executed. Even if a client has not been authorized to connect to a hub, it will still be authorized to invoke server-side methods on that hub unless it is prevented in BuildIncoming(Func<IHubIncomingInvokerContext, Task<Object>>) by not executing the invoke parameter or prevented in OnBeforeIncoming(IHubIncomingInvokerContext) by returning false.

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

Syntax

'Declaration
Protected Overridable Function OnBeforeIncoming ( _
    context As IHubIncomingInvokerContext _
) As Boolean
'Usage
Dim context As IHubIncomingInvokerContext 
Dim returnValue As Boolean 

returnValue = Me.OnBeforeIncoming(context)
protected virtual bool OnBeforeIncoming(
    IHubIncomingInvokerContext context
)
protected:
virtual bool OnBeforeIncoming(
    IHubIncomingInvokerContext^ context
)
abstract OnBeforeIncoming : 
        context:IHubIncomingInvokerContext -> bool  
override OnBeforeIncoming : 
        context:IHubIncomingInvokerContext -> bool
protected function OnBeforeIncoming(
    context : IHubIncomingInvokerContext
) : boolean

Parameters

Return Value

Type: System.Boolean
true, if the incoming components of later added modules and the server-side hub method invocation should be executed; false, otherwise.

See Also

Reference

HubPipelineModule Class

Microsoft.AspNet.SignalR.Hubs Namespace