Skip to content

Commit

Permalink
🧹 http client made readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hraško committed Jan 29, 2024
1 parent 7b5285d commit e114ae1
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions jwl.jira/JiraWithICTimePluginApi.cs
Original file line number Diff line number Diff line change
@@ -5,12 +5,13 @@
public class JiraWithICTimePluginApi
: IJiraServerApi
{
public HttpClient HttpClient { get; }
public string UserName { get; }

private readonly HttpClient _httpClient { get; }

public JiraWithICTimePluginApi(HttpClient httpClient, string userName)
{
HttpClient = httpClient;
_httpClient = httpClient;
UserName = userName;
_vanillaJiraApi = new VanillaJiraServerApi(httpClient, userName);
}
4 changes: 2 additions & 2 deletions jwl.jira/VanillaJiraServerApi.cs
Original file line number Diff line number Diff line change
@@ -9,10 +9,10 @@ namespace jwl.jira;
public class VanillaJiraServerApi
: IJiraServerApi
{
private readonly HttpClient _httpClient;

public string UserName { get; }

private readonly HttpClient _httpClient;

public VanillaJiraServerApi(HttpClient httpClient, string userName)
{
_httpClient = httpClient;

0 comments on commit e114ae1

Please sign in to comment.