RunicPresentationScopedAttribute class

Namespace Runic.Application.Views in Runic.Application.Views 0.23.0

public sealed class RunicPresentationScopedAttribute : Attribute

Inherits or implements Attribute.

Scopes a command to the presentation it was issued for: the page sends it with the presentation's epoch, and .NET runs it only while that epoch is current. Put it on a Bridge command property or on a CommunityToolkit [RelayCommand] method.

Remarks

An epoch begins with the route's first state, so content that is presented again has a new one, and with RunicPresentation.Renew, which a wizard's Next or Back calls when it changes the page. A second Next clicked on the page that the first Next already left does nothing: its call resolves with the current state, without an error.

The generated client lists the command in scopedCommands. Pages and hosts of older releases, which do not use the presentation-epoch/1 feature, run it as an ordinary command. Adding or removing the attribute changes the View's contract fingerprint.

Constructors

RunicPresentationScopedAttribute

public RunicPresentationScopedAttribute()

No documentation.