Back away from async Main for now since our build server doesn't support the latest min versions yet.
This commit is contained in:
Родитель
8c67724f03
Коммит
31922137e7
|
@ -11,7 +11,7 @@
|
|||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<NoWarn>1701;1702;1705; 1998</NoWarn>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<LangVersion>default</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -11,19 +11,19 @@ namespace Microsoft.Bot.Samples.Echo
|
|||
{
|
||||
class Program
|
||||
{
|
||||
public static async Task Main(string[] args)
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Welcome to the EchoBot.");
|
||||
|
||||
var adapter = new ConsoleAdapter()
|
||||
.Use(new ConversationState<EchoState>(new MemoryStorage()));
|
||||
|
||||
await adapter.ProcessActivity(async (context) =>
|
||||
adapter.ProcessActivity(async (context) =>
|
||||
{
|
||||
var echoBot = new EchoBot(new MyService());
|
||||
|
||||
await echoBot.OnReceiveActivity(context);
|
||||
});
|
||||
}).Wait();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче