public SdkResult(SdkReference sdkReference, IEnumerable <string> paths, string version, IDictionary <string, string> propertiesToAdd, IDictionary <string, SdkResultItem> itemsToAdd, IEnumerable <string> warnings) { Success = true; SdkReference = sdkReference; if (paths != null) { var firstPath = paths.FirstOrDefault(); if (firstPath != null) { Path = firstPath; } if (paths.Count() > 1) { AdditionalPaths = paths.Skip(1).ToList(); } } Version = version; // Note: these dictionaries should use StringComparison.OrdinalIgnoreCase PropertiesToAdd = propertiesToAdd; ItemsToAdd = itemsToAdd; Warnings = warnings; }
public SdkResult(SdkReference sdkReference, IEnumerable <string> errors, IEnumerable <string> warnings) { Success = false; SdkReference = sdkReference; Errors = errors; Warnings = warnings; }
public SdkResult(SdkReference sdkReference, string path, string version, IEnumerable <string> warnings) { Success = true; SdkReference = sdkReference; Path = path; Version = version; Warnings = warnings; }
public SdkResult(SdkReference sdkReference, string path, string version, IEnumerable <string> warnings, IDictionary <string, string> propertiesToAdd = null, IDictionary <string, SdkResultItem> itemsToAdd = null) { Success = true; SdkReference = sdkReference; Path = path; Version = version; Warnings = warnings; PropertiesToAdd = propertiesToAdd; ItemsToAdd = itemsToAdd; }
internal SdkResultFactory(SdkReference sdkReference) { _sdkReference = sdkReference; }