public static void AskAlexa()
        {
            var alexa = new Alexa();

            Console.WriteLine(alexa.Talk());


            alexa.Configure(x =>
            {
                x.greetingmessage = "Hello {ownername}, I'm at your service";
                x.ownername       = "Bob Markey";
            }
                            );

            Console.WriteLine(alexa.Talk());
        }
Exemple #2
0
        private static void Main(string[] args)
        {
            var alexa = new Alexa();

            Console.WriteLine(alexa.Talk()); //print hello, i am Alexa
            alexa.Configure(x =>
            {
                x.GreetingMessage = "Hello {OwnerName}, I'm at your service";
                x.OwnerName       = "Bob Marley";
            });

            Console.WriteLine(alexa.Talk()); //print Hello Bob Marley, I'm at your service

            Console.WriteLine("press any key to exit ...");
            Console.ReadKey();
        }