Skip to content

Commit 56224d1

Browse files
committed
Remove IApiAdapter.
1 parent b3311a1 commit 56224d1

File tree

11 files changed

+9
-18
lines changed

11 files changed

+9
-18
lines changed

src/Infrastructure/BotSharp.Abstraction/ApiAdapters/IApiAdapter.cs

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

src/Infrastructure/BotSharp.OpenAPI/Controllers/AgentController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace BotSharp.OpenAPI.Controllers;
22

33
[Authorize]
44
[ApiController]
5-
public class AgentController : ControllerBase, IApiAdapter
5+
public class AgentController : ControllerBase
66
{
77
private readonly IAgentService _agentService;
88
private readonly IServiceProvider _services;

src/Infrastructure/BotSharp.OpenAPI/Controllers/ConversationController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace BotSharp.OpenAPI.Controllers;
22

33
[Authorize]
44
[ApiController]
5-
public class ConversationController : ControllerBase, IApiAdapter
5+
public class ConversationController : ControllerBase
66
{
77
private readonly IServiceProvider _services;
88
private readonly IUserIdentity _user;

src/Infrastructure/BotSharp.OpenAPI/Controllers/EvaluationController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace BotSharp.OpenAPI.Controllers;
55

66
[Authorize]
77
[ApiController]
8-
public class EvaluationController : ControllerBase, IApiAdapter
8+
public class EvaluationController : ControllerBase
99
{
1010
private readonly IServiceProvider _services;
1111
public EvaluationController(IServiceProvider services)

src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace BotSharp.OpenAPI.Controllers;
88

99
[Authorize]
1010
[ApiController]
11-
public class InstructModeController : ControllerBase, IApiAdapter
11+
public class InstructModeController : ControllerBase
1212
{
1313
private readonly IServiceProvider _services;
1414

src/Infrastructure/BotSharp.OpenAPI/Controllers/KnowledgeController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace BotSharp.OpenAPI.Controllers;
55

66
[Authorize]
77
[ApiController]
8-
public class KnowledgeController : ControllerBase, IApiAdapter
8+
public class KnowledgeController : ControllerBase
99
{
1010
private readonly IKnowledgeService _knowledgeService;
1111
private readonly IServiceProvider _services;

src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace BotSharp.OpenAPI.Controllers;
22

33
[Authorize]
44
[ApiController]
5-
public class UserController : ControllerBase, IApiAdapter
5+
public class UserController : ControllerBase
66
{
77
private readonly IUserService _userService;
88
public UserController(IUserService userService)

src/Infrastructure/BotSharp.OpenAPI/Using.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
global using BotSharp.Abstraction.Agents.Settings;
2121
global using BotSharp.Abstraction.Conversations.Settings;
2222
global using BotSharp.Abstraction.Agents.Enums;
23-
global using BotSharp.Abstraction.ApiAdapters;
2423
global using BotSharp.Abstraction.Conversations.Enums;
2524
global using BotSharp.Abstraction.Conversations.Models;
2625
global using BotSharp.Abstraction.Models;

src/Plugins/BotSharp.Plugin.ChatHub/Controllers/ChatHubController.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
using BotSharp.Abstraction.ApiAdapters;
21
using Microsoft.AspNetCore.SignalR;
32

43
namespace BotSharp.Plugin.ChatHub.Controllers;
54

65
[Authorize]
76
[ApiController]
8-
public class ChatHubController : ControllerBase, IApiAdapter
7+
public class ChatHubController : ControllerBase
98
{
109
private readonly IServiceProvider _services;
1110
private readonly ILogger _logger;

src/Plugins/BotSharp.Plugin.ChatbotUI/ChatbotUiController.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
using System.Text;
1111
using System.Threading.Tasks;
1212
using System;
13-
using BotSharp.Abstraction.ApiAdapters;
1413
using BotSharp.Plugin.ChatbotUI.ViewModels;
1514
using Microsoft.Extensions.DependencyInjection;
1615
using BotSharp.Abstraction.Conversations;
@@ -22,7 +21,7 @@ namespace BotSharp.Plugin.ChatbotUI.Controllers;
2221

2322
[Authorize]
2423
[ApiController]
25-
public class ChatbotUiController : ControllerBase, IApiAdapter
24+
public class ChatbotUiController : ControllerBase
2625
{
2726
private readonly IServiceProvider _services;
2827
private readonly ILogger<ChatbotUiController> _logger;

0 commit comments

Comments
 (0)