atlassian.net-sdk-v2.0 /Atlassian.Jira/WebClientWrapper.cs

Language C# Lines 29
MD5 Hash ac5c4cba60a3b32aa0d56b102c162662 Estimated Cost $538 (why?)
Repository https://bitbucket.org/yyo/atlassian.net-sdk-v2.0.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace Atlassian.Jira
{
    internal class WebClientWrapper: IWebClient
    {
        private readonly WebClient _webClient;

        public WebClientWrapper()
        {
            _webClient = new WebClient();
        }

        public void AddQueryString(string key, string value)
        {
            _webClient.QueryString.Add(key, value);
        }

        public void Download(string url, string fileName)
        {
            _webClient.DownloadFile(url, fileName);
        }
    }
}
Back to Top