コード例 #1
0
        private GitHubRequest(HttpMethod method, string path, GitHubCacheDetails opts, RequestPriority priority)
        {
            if (path.IsNullOrWhiteSpace() || path.Contains('?'))
            {
                throw new ArgumentException($"path must be non null and cannot contain query parameters. provided: {path}", nameof(path));
            }

            Method       = method;
            Path         = path;
            Priority     = priority;
            CacheOptions = opts;
        }
コード例 #2
0
 public GitHubRequest(string path, GitHubCacheDetails opts = null, RequestPriority priority = RequestPriority.Background)
     : this(HttpMethod.Get, path, opts, priority)
 {
 }