Interface IProtoProviderCondition
When one provider can serve its target. Conditions are evaluated in chain order against the resolved configuration; the first that holds wins, so the provider order is the priority of the environments the chain describes.
public interface IProtoProviderCondition
- Extension Methods
Methods
Describe(ProtoProviderConditionContext)
Describes what must hold for the condition to be satisfied; the resolution record and the no-provider error use it to name every unmet condition. Only called when the condition failed.
string Describe(ProtoProviderConditionContext context)
Parameters
contextProtoProviderConditionContext
Returns
IsSatisfied(ProtoProviderConditionContext)
Returns whether the condition holds in the given environment.
bool IsSatisfied(ProtoProviderConditionContext context)
Parameters
contextProtoProviderConditionContext