Export (0) Print
Expand All

HubPipelineExtensions.RequireAuthentication Method

.NET Framework 4
.NET Framework 4

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.

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

'Declaration
<ExtensionAttribute> _
Public Shared Sub RequireAuthentication ( _
	pipeline As IHubPipeline _
)
'Usage
Dim pipeline As IHubPipeline 

pipeline.RequireAuthentication()

Parameters

pipeline
Type: Microsoft.AspNet.SignalR.Hubs.IHubPipeline
The IHubPipeline to which the AuthorizeModule will be added.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IHubPipeline. When you use instance method syntax to call this method, omit the first parameter. For more information, see http://msdn.microsoft.com/en-us/library/bb384936(v=vs.100).aspx or http://msdn.microsoft.com/en-us/library/bb383977(v=vs.100).aspx.
Show:
© 2014 Microsoft