forked from BotBuilderCommunity/botbuilder-community-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
StorageBotComponent.cs
21 lines (20 loc) · 909 Bytes
/
StorageBotComponent.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using AdaptiveExpressions.Converters;
using Microsoft.Bot.Builder;
using Microsoft.Bot.Builder.Dialogs.Declarative;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Bot.Builder.Community.Components.Storage
{
/// <summary>
/// <see cref="BotComponent"/> implementation for the storage actions.
/// </summary>
public class StorageBotComponent : BotComponent
{
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
{
services.AddSingleton<DeclarativeType>(new DeclarativeType<DeleteStorageItem>(DeleteStorageItem.Kind));
services.AddSingleton<DeclarativeType>(new DeclarativeType<ReadStorageItem>(ReadStorageItem.Kind));
services.AddSingleton<DeclarativeType>(new DeclarativeType<WriteStorageItem>(WriteStorageItem.Kind));
}
}
}