-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
26 lines (21 loc) · 828 Bytes
/
Program.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
namespace Console_EchoBot
{
internal class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Welcome to the EchoBot. Type something to get started.");
// Create the Console Adapter, and add Conversation State
// to the Bot. The Conversation State will be stored in memory.
var adapter = new ConsoleAdapter();
// Create the instance of our Bot.
var echoBot = new EchoBot();
// Connect the Console Adapter to the Bot.
adapter.ProcessActivityAsync(
async (turnContext, cancellationToken) => await echoBot.OnTurnAsync(turnContext)).Wait();
}
}
}