Yield() public method

Yield values in a dictionary as key/value pairs. (one pair for each value in each key)
public Yield ( string[]>.Dictionary dictionary ) : bool
dictionary string[]>.Dictionary
return bool
Ejemplo n.º 1
0
 public void GetFeatures(Request request)
 {
     request.Debug("Calling '{0}::GetFeatures'", PackageProviderName);
     request.Yield(new Dictionary<string, string[]>
     {
         [Constants.Features.SupportedExtensions] = new[] {"xml"},
         [Constants.Features.SupportedSchemes] = new[] {"http", "https", "file"}
     });
 }
        public override void GetFeatures(Request request)
        {
            base.GetFeatures(request);

            if (IsDisabled) request.Yield(new KeyValuePair<string, string[]>(Constants.Features.AutomationOnly, Constants.FeaturePresent));
        }