Skip to content

Commit 5b87b46

Browse files
refactor: Remove MSGraphDb class and related usages; update dependencies in GraphSelectGuidancePlugin and IServiceCollectionExtensions
1 parent 6f6ec48 commit 5b87b46

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
using DevProxy.Abstractions.Utils;
56
using Microsoft.Data.Sqlite;
67
using Microsoft.Extensions.Logging;
78
using Microsoft.OpenApi.Models;
89
using Microsoft.OpenApi.Readers;
910

10-
namespace DevProxy.Abstractions.Utils;
11+
namespace DevProxy.Abstractions.Data;
1112

1213
public sealed class MSGraphDb(HttpClient httpClient, ILogger<MSGraphDb> logger) : IDisposable
1314
{

DevProxy.Plugins/Guidance/GraphSelectGuidancePlugin.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
using DevProxy.Abstractions.Data;
56
using DevProxy.Abstractions.Proxy;
67
using DevProxy.Abstractions.Plugins;
78
using DevProxy.Abstractions.Utils;
89
using Microsoft.Extensions.Logging;
9-
using Titanium.Web.Proxy.EventArguments;
1010
using System.Globalization;
11+
using Titanium.Web.Proxy.EventArguments;
1112

1213
namespace DevProxy.Plugins.Guidance;
1314

DevProxy/Commands/MsGraphDbCommand.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using DevProxy.Abstractions.Utils;
5+
using DevProxy.Abstractions.Data;
66
using System.CommandLine;
77

88
namespace DevProxy.Commands;
99

1010
sealed class MsGraphDbCommand : Command
1111
{
12-
private readonly ILogger _logger;
1312
private readonly MSGraphDb _msGraphDb;
1413

15-
public MsGraphDbCommand(ILogger<MsGraphDbCommand> logger, MSGraphDb msGraphDb) :
14+
public MsGraphDbCommand(MSGraphDb msGraphDb) :
1615
base("msgraphdb", "Generate a local SQLite database with Microsoft Graph API metadata")
1716
{
18-
_logger = logger;
1917
_msGraphDb = msGraphDb;
2018
ConfigureCommand();
2119
}

DevProxy/Extensions/IServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// See the LICENSE file in the project root for more information.
44

55
using DevProxy;
6+
using DevProxy.Abstractions.Data;
67
using DevProxy.Abstractions.LanguageModel;
78
using DevProxy.Abstractions.Proxy;
8-
using DevProxy.Abstractions.Utils;
99
using DevProxy.Commands;
1010
using DevProxy.Proxy;
1111

dev-proxy-plugins/Mocks/MockResponsePlugin.cs

Whitespace-only changes.

0 commit comments

Comments
 (0)