RunicOperationCloseAttribute class

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

public sealed class RunicOperationCloseAttribute : Attribute

Inherits or implements Attribute.

Declares the RunicOperationClose of operations: on a command property for that command, or on a ViewModel class for each of its operations. A declaration on the property wins over the class's.

Parameters

close

What a Window's close does to the operation.

Remarks

For a CommunityToolkit [RelayCommand] method, forward it to the generated property with [property: RunicOperationClose(RunicOperationClose.Durable)]. On a member that has no operation, such as a synchronous command or a state property, it has no effect and the Bridge generator warns (RUNICBRIDGE039). The policy is .NET-side only: the generated TypeScript, contract hash and mocks do not change.

Constructors

RunicOperationCloseAttribute

public RunicOperationCloseAttribute(RunicOperationClose close)

Declares the RunicOperationClose of operations: on a command property for that command, or on a ViewModel class for each of its operations. A declaration on the property wins over the class's.

Parameters

close

What a Window's close does to the operation.

Remarks

For a CommunityToolkit [RelayCommand] method, forward it to the generated property with [property: RunicOperationClose(RunicOperationClose.Durable)]. On a member that has no operation, such as a synchronous command or a state property, it has no effect and the Bridge generator warns (RUNICBRIDGE039). The policy is .NET-side only: the generated TypeScript, contract hash and mocks do not change.

Properties

Close

public RunicOperationClose Close { get; }

Gets what a Window's close does to the operation.