Exemplo n.º 1
0
        public static SearchRequest Search(string packageIdOrName)
        {
            long operationId;
            var  status = NativeClient.Search(out operationId, packageIdOrName);

            return(new SearchRequest(operationId, status, packageIdOrName));
        }
Exemplo n.º 2
0
        internal static PerformSearchRequest Search(SearchOptions options)
        {
            long operationId;
            var  status = NativeClient.Search(out operationId, options);

            return(new PerformSearchRequest(operationId, status, options));
        }
Exemplo n.º 3
0
        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));
        }