Skip to content

Commit

Permalink
update client constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm360 committed Mar 29, 2024
1 parent 6a8f28e commit 64ecf67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/BeeNet/BeeNodeClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ public BeeNodeClient(
if (debugApiPort is not null)
{
DebugApiUrl = new Uri(BuildBaseUrl(baseUrl, debugApiPort.Value));
DebugClient = new BeeDebugClient(httpClient, DebugApiUrl);
DebugClient = new BeeDebugClient(DebugApiUrl, httpClient);
}

if (gatewayApiPort is not null)
{
GatewayApiUrl = new Uri(BuildBaseUrl(baseUrl, gatewayApiPort.Value));
GatewayClient = new BeeGatewayClient(httpClient, GatewayApiUrl);
GatewayClient = new BeeGatewayClient(GatewayApiUrl, httpClient);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/BeeNet/Clients/DebugApi/BeeDebugClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class BeeDebugClient : IBeeDebugClient
private readonly BeeDebugGeneratedClient generatedClient;

// Constructors.
public BeeDebugClient(HttpClient httpClient, Uri baseUrl)
public BeeDebugClient(Uri baseUrl, HttpClient httpClient)
{
ArgumentNullException.ThrowIfNull(baseUrl, nameof(baseUrl));

Expand Down
2 changes: 1 addition & 1 deletion src/BeeNet/Clients/GatewayApi/BeeGatewayClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class BeeGatewayClient : IBeeGatewayClient
private readonly BeeGatewayGeneratedClient generatedClient;

// Constructors.
public BeeGatewayClient(HttpClient httpClient, Uri baseUrl)
public BeeGatewayClient(Uri baseUrl, HttpClient httpClient)
{
ArgumentNullException.ThrowIfNull(baseUrl, nameof(baseUrl));

Expand Down

0 comments on commit 64ecf67

Please sign in to comment.