Method DescribeAsync
- Namespace
- IntentSharp.ChangeDetection
- Assembly
- IntentSharp.dll
DescribeAsync(string, CancellationToken)
The current description of the target named target: the one a TargetRuntime of
this client received last in this process, or null when no runtime of this client has described that target yet.
After a null, the client raises that target's TargetSchema change when a
runtime first describes it in this process, even when its fingerprint is the one recorded (then
PreviousFingerprint equals CurrentFingerprint), so
the work that needed the description can be done then.
public ValueTask<TargetDescription?> DescribeAsync(string target, CancellationToken ct = default)
Parameters
targetstringThe target's name.
ctCancellationTokenCancels the call.
Returns
- ValueTask<TargetDescription>
Exceptions
- ArgumentNullException
targetis null.