Class ArkadeIntentStorageExtensions
- Namespace
- NArk.ArkadeIntents
- Assembly
- NArk.ArkadeIntents.dll
Lookups over IArkadeIntentStorage that every store gets for free.
public static class ArkadeIntentStorageExtensions
- Inheritance
-
ArkadeIntentStorageExtensions
- Inherited Members
Methods
GetArkadeSwapIntent(IArkadeIntentStorage, string, CancellationToken)
Find one intent by id, or null.
public static Task<ArkadeSwapIntent?> GetArkadeSwapIntent(this IArkadeIntentStorage storage, string id, CancellationToken cancellationToken = default)
Parameters
storageIArkadeIntentStorageThe store to ask.
idstringThe intent's id.
cancellationTokenCancellationTokenCancels the query.
Returns
- Task<ArkadeSwapIntent>
The intent, or
nullwhen no such swap exists.
Remarks
An extension rather than a member of the interface: it is a shorthand for one filtered query, so there is nothing here an implementation could usefully do differently, and keeping it out of the contract means no store — real or test double — can answer it inconsistently with the filter it delegates to.