BotSharp/src/Infrastructure/BotSharp.Abstraction/Conversations/IConversationStateService.cs

16 lines
431 B
C#
Raw Normal View History

2023-08-09 21:49:55 +00:00
using BotSharp.Abstraction.Conversations.Models;
namespace BotSharp.Abstraction.Conversations;
/// <summary>
/// Conversation state service to track the context in the conversation lifecycle
/// </summary>
public interface IConversationStateService
{
2023-08-14 17:00:01 +00:00
void SetConversation(string conversationId);
ConversationState Load();
2023-08-09 21:49:55 +00:00
string GetState(string name);
2023-08-14 17:00:01 +00:00
void SetState(string name, string value);
2023-08-09 21:49:55 +00:00
void Save();
}