Exemplo n.º 1
0
        static async Task Main(string[] args)
        {
            using (var userManagement = new UserManagement())
            {
                var name = GetName();
                do
                {
                    var notification = await userManagement.AddNewUserAsync(name);

                    WriteResponse($"Notification received:{notification.Message} - {notification.Method}");

                    Console.WriteLine();
                    name = GetName();
                } while (!string.IsNullOrWhiteSpace(name));
            }
        }