Table of Contents

Interface ISavingRule<TEntityView>

Namespace
GroupeIsa.Neos.Application.Rules.EventRules
Assembly
GroupeIsa.Neos.Application.Abstractions.dll

Provides the functionalities of a saving rule.

public interface ISavingRule<TEntityView> where TEntityView : IEntityView

Type Parameters

TEntityView

The entity view type.

Methods

OnSavingAsync(ISavingRuleArguments<TEntityView>)

Executes the saving rule.

Task OnSavingAsync(ISavingRuleArguments<TEntityView> args)

Parameters

args ISavingRuleArguments<TEntityView>

Saved rule arguments.

Returns

Task

A Task representing the asynchronous operation.

OnSavingAsync(ISavingRuleArguments<TEntityView>, CancellationToken)

Executes the saving rule.

Task OnSavingAsync(ISavingRuleArguments<TEntityView> args, CancellationToken cancellationToken)

Parameters

args ISavingRuleArguments<TEntityView>

Saved rule arguments.

cancellationToken CancellationToken

A CancellationToken that can be used to cancel the operation.

Returns

Task

A Task representing the asynchronous operation.