Skip to content

Commit 6374350

Browse files
committed
Remove abstract auth client class and simplify hierarchy
1 parent 4ca432a commit 6374350

6 files changed

Lines changed: 308 additions & 323 deletions

File tree

OsmSharp.IO.API.Tests/OAuth2ClientTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using OsmSharp.API;
44
using OsmSharp.Changesets;
55
using OsmSharp.Tags;
6-
using System;
76
using System.IO;
87
using System.Linq;
98
using System.Net.Http;

OsmSharp.IO.API/AuthClient.cs

Lines changed: 0 additions & 309 deletions
This file was deleted.

OsmSharp.IO.API/ClientsFactory.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
using Microsoft.Extensions.Logging;
2-
using System;
3-
using System.Collections.Generic;
42
using System.Net.Http;
5-
using System.Text;
63

74
namespace OsmSharp.IO.API
85
{
@@ -39,7 +36,7 @@ public INonAuthClient CreateNonAuthClient()
3936
/// <inheritdoc/>
4037
public IAuthClient CreateOAuth2Client(string token)
4138
{
42-
return new OAuth2Client(_httpClient, _logger, _baseAddress, token);
39+
return new OAuth2Client(token, _baseAddress, _httpClient, _logger);
4340
}
4441
}
4542
}

OsmSharp.IO.API/INonAuthClient.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using OsmSharp.API;
66
using OsmSharp.Changesets;
77
using OsmSharp.Complete;
8-
using OsmSharp.Db;
98

109
namespace OsmSharp.IO.API
1110
{

OsmSharp.IO.API/NonAuthClient.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
using System.IO;
1515
using System.Web;
1616
using Microsoft.Extensions.Logging;
17-
using OsmSharp.Db;
1817
using System.Globalization;
1918

2019
namespace OsmSharp.IO.API

0 commit comments

Comments
 (0)