Share via


AuthorizeModule.BuildIncoming Method

.NET Framework 4

Wraps a function that invokes a server-side hub method. 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.

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

Syntax

'Declaration
Public Overrides Function BuildIncoming ( _
    invoke As Func(Of IHubIncomingInvokerContext, Task(Of Object)) _
) As Func(Of IHubIncomingInvokerContext, Task(Of Object))
'Usage
Dim instance As AuthorizeModule 
Dim invoke As Func(Of IHubIncomingInvokerContext, Task(Of Object))
Dim returnValue As Func(Of IHubIncomingInvokerContext, Task(Of Object))

returnValue = instance.BuildIncoming(invoke)
public override Func<IHubIncomingInvokerContext, Task<Object>> BuildIncoming(
    Func<IHubIncomingInvokerContext, Task<Object>> invoke
)
public:
virtual Func<IHubIncomingInvokerContext^, Task<Object^>^>^ BuildIncoming(
    Func<IHubIncomingInvokerContext^, Task<Object^>^>^ invoke
) override
abstract BuildIncoming : 
        invoke:Func<IHubIncomingInvokerContext, Task<Object>> -> Func<IHubIncomingInvokerContext, Task<Object>> 
override BuildIncoming : 
        invoke:Func<IHubIncomingInvokerContext, Task<Object>> -> Func<IHubIncomingInvokerContext, Task<Object>> 
public override function BuildIncoming(
    invoke : Func<IHubIncomingInvokerContext, Task<Object>>
) : Func<IHubIncomingInvokerContext, Task<Object>>

Parameters

Return Value

Type: System.Func<IHubIncomingInvokerContext, Task<Object>>
A wrapped function that invokes a server-side hub method.

Implements

IHubPipelineModule.BuildIncoming(Func<IHubIncomingInvokerContext, Task<Object>>)

See Also

Reference

AuthorizeModule Class

Microsoft.AspNet.SignalR.Hubs Namespace