BotSharp/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.Log.cs

23 lines
767 B
C#
Raw Normal View History

2024-02-15 20:43:36 +00:00
using BotSharp.Abstraction.Loggers.Models;
using BotSharp.Abstraction.Repositories;
namespace BotSharp.Core.Conversations.Services;
public partial class ConversationService
{
2024-03-01 02:50:39 +00:00
public async Task<List<ContentLogOutputModel>> GetConversationContentLogs(string conversationId)
2024-02-15 20:43:36 +00:00
{
var db = _services.GetRequiredService<IBotSharpRepository>();
var logs = db.GetConversationContentLogs(conversationId);
return await Task.FromResult(logs);
}
public async Task<List<ConversationStateLogModel>> GetConversationStateLogs(string conversationId)
{
var db = _services.GetRequiredService<IBotSharpRepository>();
var logs = db.GetConversationStateLogs(conversationId);
return await Task.FromResult(logs);
}
}