-
Notifications
You must be signed in to change notification settings - Fork 177
/
CallDialogsBotComponent.cs
27 lines (25 loc) · 1.12 KB
/
CallDialogsBotComponent.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.Collections.Generic;
using AdaptiveExpressions.Converters;
using Microsoft.Bot.Builder;
using Microsoft.Bot.Builder.Dialogs.Debugging;
using Microsoft.Bot.Builder.Dialogs.Declarative;
using Microsoft.Bot.Builder.Dialogs.Declarative.Converters;
using Microsoft.Bot.Builder.Dialogs.Declarative.Resources;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json;
namespace Bot.Builder.Community.Components.CallDialogs
{
/// <summary>
/// <see cref="BotComponent"/> implementation for the <see cref="CallDialogs"/> component.
/// </summary>
public class CallDialogsBotComponent : BotComponent
{
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
{
services.AddSingleton<DeclarativeType>(new DeclarativeType<AddDialogCall>(AddDialogCall.Kind));
services.AddSingleton<DeclarativeType>(new DeclarativeType<CallDialogs>(CallDialogs.Kind));
services.AddSingleton<JsonConverterFactory, JsonConverterFactory<ObjectExpressionConverter<object>>>();
}
}
}