We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e879f5 commit ced795cCopy full SHA for ced795c
src/YouTrackSharp/BearerTokenConnection.cs
@@ -90,10 +90,7 @@ public override async Task<YouTrackClient> GetAuthenticatedApiClient()
90
Timeout = _timeout
91
};
92
93
- _youTrackClient = new YouTrackClient(_httpClient)
94
- {
95
- BaseUrl = ServerUri.ToString().TrimEnd('/') + "/api/"
96
- };
+ _youTrackClient = new YouTrackClient(_httpClient);
97
}
98
99
// Authenticate?
src/YouTrackSharp/Generated/YouTrackSharp.Api.cs
@@ -27,7 +27,14 @@ public partial class YouTrackClient
27
28
public string BaseUrl
29
{
30
- get { return _baseUrl; }
+ get
31
+ {
32
+ if (_baseUrl == null)
33
34
+ _baseUrl = _httpClient.BaseAddress.ToString().TrimEnd('/') + "/api/";
35
+ };
36
+ return _baseUrl;
37
+ }
38
set { _baseUrl = value; }
39
40
0 commit comments