Share via


IHubPipeline Interface

.NET Framework 4

A collection of modules that can intercept and customize various stages of hub processing such as connecting, reconnecting, disconnecting, invoking server-side hub methods, invoking client-side hub methods, authorizing hub clients and rejoining hub groups.

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

Syntax

'Declaration
Public Interface IHubPipeline
'Usage
Dim instance As IHubPipeline
public interface IHubPipeline
public interface class IHubPipeline
type IHubPipeline =  interface end
public interface IHubPipeline

The IHubPipeline type exposes the following members.

Methods

  Name Description
Public method AddModule Adds an IHubPipelineModule to the hub pipeline. Modules added to the pipeline first will wrap modules that are added to the pipeline later. All modules must be added to the pipeline before any methods on the IHubPipelineInvoker are invoked.

Top

Extension Methods

  Name Description
Public Extension Method RequireAuthentication Requiring Authentication adds an AuthorizeModule to the IHubPipeline with IAuthorizeHubConnection and IAuthorizeHubMethodInvocation authorizers that will be applied globally to all hubs and hub methods. These authorizers require that the IPrincipal's IIdentity IsAuthenticated for any clients that invoke server-side hub methods or receive client-side hub method invocations. (Defined by HubPipelineExtensions.)

Top

See Also

Reference

Microsoft.AspNet.SignalR.Hubs Namespace