Ejemplo n.º 1
0
        private static void RegisterPersonHandler(AMediator amediator)
        {
            Dictionary <string, Person> allPersons = new Dictionary <string, Person>
            {
                ["Bob"] = new Person()
                {
                    Name = "Bob", Email = "*****@*****.**", Age = 35
                },
            };

            amediator.RegisterHandler((PersonRequest x) =>
            {
                // TODO: Implement handler logic
                return(new PersonResponse(null));
            });
        }