예제 #1
0
        public static SearchRequest Search(string packageIdOrName)
        {
            long operationId;
            var  status = NativeClient.Search(out operationId, packageIdOrName);

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

            return(new PerformSearchRequest(operationId, status, options));
        }
예제 #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));
        }