Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0f6645f

Browse files
Update README.md
1 parent 3027580 commit 0f6645f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,13 @@ Microsoft Bot Builder Storage provider based on LiteDb database
44
## Usage
55
In Startup.cs , replace MemoryStorage with BinaryFog.Bot.Builder.LiteDb.LiteDbStorage
66
```C#
7-
services.AddSingleton<IStorage, BinaryFog.Bot.Builder.LiteDb.LiteDbStorage>();
7+
var storage = new BinaryFog.Bot.Builder.LiteDb.LiteDbStorage();
8+
9+
// Create the User state passing in the storage layer.
10+
var userState = new UserState(storage);
11+
services.AddSingleton(userState);
12+
13+
// Create the Conversation state passing in the storage layer.
14+
var conversationState = new ConversationState(storage);
15+
services.AddSingleton(conversationState);
816
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /