Class RoleAuthAttribute
Code on this page inspired by answers in this post: https://stackoverflow.com/questions/31464359/how-do-you-create-a-custom-authorizeattribute-in-asp-net-core/31465227#31465227
Inheritance
System.Object
RoleAuthAttribute
Namespace: LymeTemplateApi.Code
Assembly: LymeTemplateApi.dll
Syntax
public class RoleAuthAttribute : TypeFilterAttribute
Constructors
RoleAuthAttribute(String)
Declaration
public RoleAuthAttribute(string roles)
Parameters
Type | Name | Description |
---|---|---|
System.String | roles |