Partager via


IHubPipelineModule.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
Function BuildIncoming ( _
    invoke As Func(Of IHubIncomingInvokerContext, Task(Of Object)) _
) As Func(Of IHubIncomingInvokerContext, Task(Of Object))
'Usage
Dim instance As IHubPipelineModule 
Dim invoke As Func(Of IHubIncomingInvokerContext, Task(Of Object))
Dim returnValue As Func(Of IHubIncomingInvokerContext, Task(Of Object))

returnValue = instance.BuildIncoming(invoke)
Func<IHubIncomingInvokerContext, Task<Object>> BuildIncoming(
    Func<IHubIncomingInvokerContext, Task<Object>> invoke
)
Func<IHubIncomingInvokerContext^, Task<Object^>^>^ BuildIncoming(
    Func<IHubIncomingInvokerContext^, Task<Object^>^>^ invoke
)
abstract BuildIncoming : 
        invoke:Func<IHubIncomingInvokerContext, Task<Object>> -> Func<IHubIncomingInvokerContext, Task<Object>> 
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.

See Also

Reference

IHubPipelineModule Interface

Microsoft.AspNet.SignalR.Hubs Namespace