Class ProtoResolvedTarget

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

How one target resolved: the winning provider and the capabilities it declared. A dependent chain reads it from ProtoProviderConditionContext to follow the target it belongs to.

public sealed record ProtoResolvedTarget : IEquatable<ProtoResolvedTarget>
Inheritance
ProtoResolvedTarget
Implements
Inherited Members
Extension Methods

Constructors

ProtoResolvedTarget(string, string, IReadOnlyList<ProtoCapabilityDescriptor>)

How one target resolved: the winning provider and the capabilities it declared. A dependent chain reads it from ProtoProviderConditionContext to follow the target it belongs to.

public ProtoResolvedTarget(string TargetName, string ProviderName, IReadOnlyList<ProtoCapabilityDescriptor> Capabilities)

Parameters

TargetName string

The target's identity.

ProviderName string

The name of the provider that won the chain.

Capabilities IReadOnlyList<ProtoCapabilityDescriptor>

The capabilities the winning provider declared.

Properties

Capabilities

The capabilities the winning provider declared.

public IReadOnlyList<ProtoCapabilityDescriptor> Capabilities { get; init; }

Property Value

IReadOnlyList<ProtoCapabilityDescriptor>

ProviderName

The name of the provider that won the chain.

public string ProviderName { get; init; }

Property Value

string

TargetName

The target's identity.

public string TargetName { get; init; }

Property Value

string

Methods

HasCapability(string)

Whether the winning provider declared a capability of the given kind.

public bool HasCapability(string kind)

Parameters

kind string

Returns

bool