AuthorizeAttribute Class
Visual Studio 2010
.NET Framework 4
Namespace:
Microsoft.AspNet.SignalR
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
Top
Top
Top
Apply to Hubs and Hub methods to authorize client connections to Hubs and authorize client invocations of Hub methods.
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
The AuthorizeAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | RequireOutgoing | Set to false to apply authorization only to the invocations of any of the Hub's server-side methods. This property only affects attributes applied to the Hub class. This property cannot be read. |
![]() | Roles | Gets or sets the user roles. |
![]() | TypeId | (Inherited from Attribute.) |
![]() | Users | Gets or sets the authorized users. |
| Name | Description | |
|---|---|---|
![]() | AuthorizeHubConnection | Determines whether client is authorized to connect to IHub. |
![]() | AuthorizeHubMethodInvocation | Determines whether client is authorized to invoke the IHub method. |
![]() | Equals | (Inherited from Attribute.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Attribute.) |
![]() | GetType | (Inherited from Object.) |
![]() | IsDefaultAttribute | (Inherited from Attribute.) |
![]() | Match | (Inherited from Attribute.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
![]() | UserAuthorized | When overridden, provides an entry point for custom authorization checks. Called by AuthorizeHubConnection(HubDescriptor, IRequest) and AuthorizeHubMethodInvocation(IHubIncomingInvokerContext, Boolean). |
| Name | Description | |
|---|---|---|
![]() ![]() | _Attribute::GetIDsOfNames | (Inherited from Attribute.) |
![]() ![]() | _Attribute::GetTypeInfo | (Inherited from Attribute.) |
![]() ![]() | _Attribute::GetTypeInfoCount | (Inherited from Attribute.) |
![]() ![]() | _Attribute::Invoke | (Inherited from Attribute.) |
Show:
