public sealed class RunicOperationRetirementAttribute : Attribute Declares the RunicOperationRetirement 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
retirementWhat happens to the operation when its entry retires.
Remarks
For a CommunityToolkit [RelayCommand] method, forward it to the generated property with [property: RunicOperationRetirement(RunicOperationRetirement.Cancel)]. 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 (RUNICBRIDGE028). The policy is .NET-side only: the generated TypeScript, contract hash and mocks do not change.
Constructors
RunicOperationRetirementAttribute
public RunicOperationRetirementAttribute(RunicOperationRetirement retirement) Declares the RunicOperationRetirement 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
retirementWhat happens to the operation when its entry retires.
Remarks
For a CommunityToolkit [RelayCommand] method, forward it to the generated property with [property: RunicOperationRetirement(RunicOperationRetirement.Cancel)]. 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 (RUNICBRIDGE028). The policy is .NET-side only: the generated TypeScript, contract hash and mocks do not change.
Properties
Retirement
public RunicOperationRetirement Retirement { get; } Gets what happens to the operation when its entry retires.