Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RequireAuthentication Method
Collapse the table of content
Expand the table of content

HubPipelineExtensions.RequireAuthentication Method

.NET Framework 4.5

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)

static member RequireAuthentication : 
        pipeline:IHubPipeline -> unit

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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111).aspx or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).aspx.
Show:
© 2015 Microsoft