Table of Contents

Class AuthorizedMenuModel

Namespace
The.Web.Routing
Assembly
Instagile.Web.Client.dll

A menu which is hidden or replaced by a fallback based on authorization rules.

public record AuthorizedMenuModel : MenuModel, IEquatable<MenuModel>, IEquatable<AuthorizedMenuModel>
Inheritance
AuthorizedMenuModel
Implements
Inherited Members

Constructors

AuthorizedMenuModel(MenuModel, string[]?, string?, object?)

public AuthorizedMenuModel(MenuModel Authorized, string[]? Roles = null, string? Policy = null, object? Resource = null)

Parameters

Authorized MenuModel
Roles string[]
Policy string
Resource object

AuthorizedMenuModel(MenuModel, MenuModel?, string[]?, string?, object?)

A menu which is hidden or replaced by a fallback based on authorization rules.

public AuthorizedMenuModel(MenuModel Authorized, MenuModel? NotAuthorized, string[]? Roles = null, string? Policy = null, object? Resource = null)

Parameters

Authorized MenuModel
NotAuthorized MenuModel
Roles string[]
Policy string
Resource object

Properties

Authorized

public MenuModel Authorized { get; init; }

Property Value

MenuModel

NotAuthorized

public MenuModel? NotAuthorized { get; init; }

Property Value

MenuModel

Policy

public string? Policy { get; init; }

Property Value

string

Resource

public object? Resource { get; init; }

Property Value

object

Roles

public string[]? Roles { get; init; }

Property Value

string[]

Methods

Flatten(IServices)

public override IEnumerable<LinkModel> Flatten(IServices services)

Parameters

services IServices

Returns

IEnumerable<LinkModel>