Class LinksDecoratorBase<TLinkAddress>
- Namespace
- Platform.Data.Doublets.Decorators
- Assembly
- Platform.Data.Doublets.dll
Represents the links decorator base.
public abstract class LinksDecoratorBase<TLinkAddress> : LinksOperatorBase<TLinkAddress>, ILinks<TLinkAddress>, ILinks<TLinkAddress, LinksConstants<TLinkAddress>> where TLinkAddress : IUnsignedNumber<TLinkAddress>
Type Parameters
TLinkAddress
- Inheritance
-
LinksOperatorBase<TLinkAddress>LinksDecoratorBase<TLinkAddress>
- Implements
-
ILinks<TLinkAddress>ILinks<TLinkAddress, LinksConstants<TLinkAddress>>
- Derived
- Inherited Members
- Extension Methods
Constructors
LinksDecoratorBase(ILinks<TLinkAddress>)
Initializes a new LinksDecoratorBase<TLinkAddress> instance.
protected LinksDecoratorBase(ILinks<TLinkAddress> links)
Parameters
linksILinks<TLinkAddress>A links.
Fields
_constants
The constants.
protected readonly LinksConstants<TLinkAddress> _constants
Field Value
- LinksConstants<TLinkAddress>
_facade
The facade.
protected ILinks<TLinkAddress> _facade
Field Value
- ILinks<TLinkAddress>
Properties
Constants
Gets the constants value.
public LinksConstants<TLinkAddress> Constants { get; }
Property Value
- LinksConstants<TLinkAddress>
Facade
Gets or sets the facade value.
public ILinks<TLinkAddress> Facade { get; set; }
Property Value
- ILinks<TLinkAddress>
Methods
Count(IList<TLinkAddress>?)
Counts the restriction.
public virtual TLinkAddress Count(IList<TLinkAddress>? restriction)
Parameters
restrictionIList<TLinkAddress>The restriction.
Returns
- TLinkAddress
The link
Create(IList<TLinkAddress>?, WriteHandler<TLinkAddress>?)
Creates the restriction.
public virtual TLinkAddress Create(IList<TLinkAddress>? substitution, WriteHandler<TLinkAddress>? handler)
Parameters
substitutionIList<TLinkAddress>The restriction.
handlerWriteHandler<TLinkAddress>Optional callback; null continues without invoking a callback.
Returns
- TLinkAddress
The link
Delete(IList<TLinkAddress>?, WriteHandler<TLinkAddress>?)
Deletes the restriction.
public virtual TLinkAddress Delete(IList<TLinkAddress>? restriction, WriteHandler<TLinkAddress>? handler)
Parameters
restrictionIList<TLinkAddress>The restriction.
handlerWriteHandler<TLinkAddress>Optional callback; null continues without invoking a callback.
Returns
- TLinkAddress
Each(IList<TLinkAddress>?, ReadHandler<TLinkAddress>?)
Eaches the handler.
public virtual TLinkAddress Each(IList<TLinkAddress>? restriction, ReadHandler<TLinkAddress>? handler)
Parameters
restrictionIList<TLinkAddress>The restriction.
handlerReadHandler<TLinkAddress>The handler.
Returns
- TLinkAddress
The link
Update(IList<TLinkAddress>?, IList<TLinkAddress>?, WriteHandler<TLinkAddress>?)
Updates the restriction.
public virtual TLinkAddress Update(IList<TLinkAddress>? restriction, IList<TLinkAddress>? substitution, WriteHandler<TLinkAddress>? handler)
Parameters
restrictionIList<TLinkAddress>The restriction.
substitutionIList<TLinkAddress>The substitution.
handlerWriteHandler<TLinkAddress>Optional callback; null continues without invoking a callback.
Returns
- TLinkAddress
The link
See Also
LinksOperatorBase<TLinkAddress>
ILinks<TLinkAddress>