Table of Contents

Class ActionLinkModel<T>

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

Represents a link which executes arbitrary code when activated and requires dependencies to operate.

public sealed record ActionLinkModel<T> : ActionLinkModel, IEquatable<LinkModel>, IEquatable<ActionLinkModel>, IEquatable<ActionLinkModel<T>> where T : notnull

Type Parameters

T
Inheritance
ActionLinkModel<T>
Implements
Inherited Members

Constructors

ActionLinkModel(string?, Action<T>, string?)

public ActionLinkModel(string? Text, Action<T> Action, string? Href = null)

Parameters

Text string
Action Action<T>
Href string

ActionLinkModel(string?, Func<T, Task>, string?)

public ActionLinkModel(string? Text, Func<T, Task> Action, string? Href = null)

Parameters

Text string
Action Func<T, Task>
Href string

Methods

Accept(IFragmentVisitor<string?>)

public override RenderFragment Accept(IFragmentVisitor<string?> visitor)

Parameters

visitor IFragmentVisitor<string>

Returns

RenderFragment

Activate(IServiceProvider)

Attempts to activate the link. May not return control to the caller.

public override void Activate(IServiceProvider provider)

Parameters

provider IServiceProvider