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; }
public GitHubRequest(string path, GitHubCacheDetails opts = null, RequestPriority priority = RequestPriority.Background) : this(HttpMethod.Get, path, opts, priority) { }