BotSharp/BotSharp.Platform.Abstraction/IContextStorage.cs

14 lines
299 B
C#
Raw Normal View History

2018-12-07 21:21:36 +00:00
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
2018-12-07 21:21:36 +00:00
namespace BotSharp.Platform.Abstraction
{
public interface IContextStorage<T>
2018-12-07 21:21:36 +00:00
{
Task<bool> Persist(string sessionId, T[] context);
2018-12-09 15:57:34 +00:00
Task<T[]> Fetch(string sessionId);
2018-12-07 21:21:36 +00:00
}
}