2018-12-07 21:21:36 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
2018-12-07 22:57:26 +00:00
|
|
|
|
using System.Threading.Tasks;
|
2018-12-07 21:21:36 +00:00
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Platform.Abstraction
|
|
|
|
|
|
{
|
2018-12-07 22:57:26 +00:00
|
|
|
|
public interface IContextStorage<T>
|
2018-12-07 21:21:36 +00:00
|
|
|
|
{
|
2018-12-07 22:57:26 +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
|
|
|
|
}
|
|
|
|
|
|
}
|