Class ProtoResolvedTarget
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
TargetNamestringThe target's identity.
ProviderNamestringThe name of the provider that won the chain.
CapabilitiesIReadOnlyList<ProtoCapabilityDescriptor>The capabilities the winning provider declared.
Properties
Capabilities
The capabilities the winning provider declared.
public IReadOnlyList<ProtoCapabilityDescriptor> Capabilities { get; init; }
Property Value
ProviderName
The name of the provider that won the chain.
public string ProviderName { get; init; }
Property Value
TargetName
The target's identity.
public string TargetName { get; init; }
Property Value
Methods
HasCapability(string)
Whether the winning provider declared a capability of the given kind.
public bool HasCapability(string kind)
Parameters
kindstring