Table of Contents

Class DeletedSelectQueryBehavior<TEntityModel>

Namespace
Arbiter.CommandQuery.Behaviors
Assembly
Arbiter.CommandQuery.dll

A behavior for appending soft delete (IsDeleted) filter

public class DeletedSelectQueryBehavior<TEntityModel> : DeletedFilterBehaviorBase<TEntityModel, EntitySelectQuery<TEntityModel>, IReadOnlyCollection<TEntityModel>>, IPipelineBehavior<EntitySelectQuery<TEntityModel>, IReadOnlyCollection<TEntityModel>> where TEntityModel : class

Type Parameters

TEntityModel

The type of the entity model.

Inheritance
DeletedFilterBehaviorBase<TEntityModel, EntitySelectQuery<TEntityModel>, IReadOnlyCollection<TEntityModel>>
DeletedSelectQueryBehavior<TEntityModel>
Implements
Inherited Members

Constructors

DeletedSelectQueryBehavior(ILoggerFactory)

Initializes a new instance of the DeletedSelectQueryBehavior<TEntityModel> class.

public DeletedSelectQueryBehavior(ILoggerFactory loggerFactory)

Parameters

loggerFactory ILoggerFactory

The logger factory to create an ILogger from

Methods

Process(EntitySelectQuery<TEntityModel>, RequestHandlerDelegate<IReadOnlyCollection<TEntityModel>>, CancellationToken)

Processes the specified request with the additional behavior.

protected override ValueTask<IReadOnlyCollection<TEntityModel>?> Process(EntitySelectQuery<TEntityModel> request, RequestHandlerDelegate<IReadOnlyCollection<TEntityModel>> next, CancellationToken cancellationToken)

Parameters

request EntitySelectQuery<TEntityModel>

The incoming request.

next RequestHandlerDelegate<IReadOnlyCollection<TEntityModel>>

Awaitable delegate for the next action in the pipeline. Eventually this delegate represents the handler.

cancellationToken CancellationToken

The cancellation token.

Returns

ValueTask<IReadOnlyCollection<TEntityModel>>

Awaitable task returning the System.Collections.Generic.IReadOnlyCollection{`0}