Table of Contents

Class RequireRoleAttribute

Namespace
JD.AI.Gateway.Middleware
Assembly
JD.AI.Gateway.dll

Marks an endpoint as requiring a minimum GatewayRole.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method)]
public sealed class RequireRoleAttribute : Attribute
Inheritance
RequireRoleAttribute
Inherited Members

Constructors

RequireRoleAttribute(GatewayRole)

Marks an endpoint as requiring a minimum GatewayRole.

public RequireRoleAttribute(GatewayRole minimumRole)

Parameters

minimumRole GatewayRole

Properties

MinimumRole

public GatewayRole MinimumRole { get; }

Property Value

GatewayRole