Skip to content

IUndeleteBehaviorAsync interface

namespace: Serenity.Services   assemblySerenity.Net.Services

An asynchronous undelete behavior that can be used as a mixin within a UndeleteRequestHandlerAsync lifecycle

public interface IUndeleteBehaviorAsync : IUndeleteBehavior

Members

name description
OnAfterUndeleteAsync(…) Called after row is undeleted in database
OnAuditAsync(…) Called after row is undeleted and auditing should be performed
OnBeforeUndeleteAsync(…) Called just before row is undeleted in database
OnPrepareQueryAsync(…) Called when query to load old entity is built
OnReturnAsync(…) Called before handler is returning the result
OnValidateRequestAsync(…) Called when undelete request is validated

Remarks

A undelete behavior instance is always cached and reused across requests, so make sure you don't store anything in private variables, and its operation is thread-safe. If you need to pass some state between events, use handler's StateBag.

See Also