Skip to Content
C# 8 and .NET Core 3 Projects Using Azure - Second Edition
book

C# 8 and .NET Core 3 Projects Using Azure - Second Edition

by Paul Michaels, Dirk Strauss, Jas Rademeyer
December 2019
Intermediate to advanced
528 pages
11h 19m
English
Packt Publishing
Content preview from C# 8 and .NET Core 3 Projects Using Azure - Second Edition

DirectLineWrapper

Ultimately, the purpose of this entire application is to send a message to our bot and print the reply on the screen. The next thing that we're going to introduce is a wrapper class to do just that. We'll fill in the actual class code later in the chapter, but here, we're just going to use the class as though it does everything we need. Let's start by declaring it as a class-level variable:

BotClientSdk.DirectLineWrapper _wrapper = null;

Now, we'll instantiate this in the constructor, which should now look like this:

public MainViewModel()
{
    SendMessageCommand = new RelayCommandAsync<string>(SendMessage); 
    _wrapper = new BotClientSdk.DirectLineWrapper(PopulateHistory);
}

You'll notice that we're passing a variable into the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Enterprise Application Development with C# 9 and .NET 5

Enterprise Application Development with C# 9 and .NET 5

Ravindra Akella, Rishabh Verma, Arun Kumar Tamirisa, Suneel Kumar Kunani, Bhupesh Guptha Muthiyalu
ASP.NET Core 2 and Angular 5

ASP.NET Core 2 and Angular 5

Valerio De Sanctis, Jürgen Gutsch
ASP.NET Core 5 for Beginners

ASP.NET Core 5 for Beginners

Andreas Helland, Vincent Maverick Durano, Jeffrey Chilberto, Ed Price

Publisher Resources

ISBN: 9781789612080Supplemental Content