Documentation
Table of Contents

Method DescribeAsync

Namespace
IntentSharp.Targets
Assembly
IntentSharp.dll

DescribeAsync(bool, CancellationToken)

Returns the target's description, with its Fingerprint: the one already received when the target's probe returns the same token as then and its change token has not fired, else a new one from DescribeAsync(TargetContext, CancellationToken). A target without a probe is described on every call. A new description whose fingerprint differs from the recorded one is an EnvironmentChange, handled before this returns with this description and checked with this runtime's rule sets, as during an operation; the next operation reports what the handlers did, and a refusal of the change's Environment check refuses it.

public ValueTask<TargetDescription> DescribeAsync(bool refresh = false, CancellationToken cancellationToken = default)

Parameters

refresh bool

True describes the target again whatever its probe says.

cancellationToken CancellationToken

Cancels the call.

Returns

ValueTask<TargetDescription>

Exceptions

TargetOperationException

The target returned no description, one with no language or command schema, or an entity with no path.