forked from microsoft/BotBuilder-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIStore.cs
More file actions
20 lines (17 loc) · 646 Bytes
/
IStore.cs
File metadata and controls
20 lines (17 loc) · 646 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
namespace Microsoft.BotBuilderSamples
{
/// <summary>
/// An ETag aware store definition.
/// The interface is defined in terms of JObject to move serialization out of the storage layer
/// while still indicating it is JSON, a fact the store may choose to make use of.
/// </summary>
public interface IStore
{
Task<(JObject content, string etag)> LoadAsync(string key);
Task<bool> SaveAsync(string key, JObject content, string etag);
}
}