-
Notifications
You must be signed in to change notification settings - Fork 5
/
AzureStorageBotComponent.cs
23 lines (22 loc) · 1.07 KB
/
AzureStorageBotComponent.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using Iciclecreek.Bot.Builder.Dialogs.Database.AzureStorage.Table;
using Microsoft.Bot.Builder;
using Microsoft.Bot.Builder.Dialogs.Declarative;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Iciclecreek.Bot.Builder.Dialogs.Database.AzureStorage
{
/// <summary>
/// Class which contains registration of components for CosmosDB.
/// </summary>
public class AzureStorageBotComponent : BotComponent
{
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
{
// actions
services.AddSingleton<DeclarativeType>((sp) => new DeclarativeType<CreateTable>(CreateTable.Kind));
services.AddSingleton<DeclarativeType>((sp) => new DeclarativeType<DeleteTable>(DeleteTable.Kind));
services.AddSingleton<DeclarativeType>((sp) => new DeclarativeType<RetrieveEntity>(RetrieveEntity.Kind));
services.AddSingleton<DeclarativeType>((sp) => new DeclarativeType<EntityOperation>(EntityOperation.Kind));
}
}
}