Class LinksNonExistentDeletionResolver<TLinkAddress>
- Namespace
- Platform.Data.Doublets.Decorators
- Assembly
- Platform.Data.Doublets.dll
Ignores deletion of a missing link without calling the inner store or handler.
public class LinksNonExistentDeletionResolver<TLinkAddress> : LinksDecoratorBase<TLinkAddress>, ILinks<TLinkAddress>, ILinks<TLinkAddress, LinksConstants<TLinkAddress>> where TLinkAddress : IUnsignedNumber<TLinkAddress>
Type Parameters
TLinkAddress
- Inheritance
-
LinksOperatorBase<TLinkAddress>LinksDecoratorBase<TLinkAddress>LinksNonExistentDeletionResolver<TLinkAddress>
- Implements
-
ILinks<TLinkAddress>ILinks<TLinkAddress, LinksConstants<TLinkAddress>>
- Inherited Members
- Extension Methods
Remarks
Place this outside reset and cascade resolvers so it runs before they read the link. Existing links are forwarded unchanged; endpoint reset and usages remain separate policies.
Constructors
LinksNonExistentDeletionResolver(ILinks<TLinkAddress>)
Wraps a store with the ignore-missing-deletion policy.
public LinksNonExistentDeletionResolver(ILinks<TLinkAddress> links)
Parameters
linksILinks<TLinkAddress>
Methods
Delete(IList<TLinkAddress>?, WriteHandler<TLinkAddress>?)
Returns Continue for a missing link, or forwards an existing deletion.
public override TLinkAddress Delete(IList<TLinkAddress>? restriction, WriteHandler<TLinkAddress>? handler)
Parameters
restrictionIList<TLinkAddress>handlerWriteHandler<TLinkAddress>
Returns
- TLinkAddress