public static SearchRequest Search(string packageIdOrName) { long operationId; var status = NativeClient.Search(out operationId, packageIdOrName); return(new SearchRequest(operationId, status, packageIdOrName)); }
internal static PerformSearchRequest Search(SearchOptions options) { long operationId; var status = NativeClient.Search(out operationId, options); return(new PerformSearchRequest(operationId, status, options)); }
public static SearchRequest Search(string packageIdOrName, bool offlineMode) { if (string.IsNullOrEmpty(packageIdOrName?.Trim())) { throw new ArgumentNullException(nameof(packageIdOrName)); } long operationId; var status = NativeClient.Search(out operationId, packageIdOrName, offlineMode); return(new SearchRequest(operationId, status, packageIdOrName)); }