Beispiel #1
0
        static void Main(string[] args)
        {
            var eventHandler = new RabbitMQDomainEventHandler("127.0.0.1", "cqrs_user", "SeeQueErEs", "PensioenSysteem.Correspondentie", HandleEvent);
            eventHandler.Start();

            Console.WriteLine("Correspondentie service gestart. Druk een toets om te stoppen.");
            Console.ReadKey(true);

            eventHandler.Stop();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            _auditLogFolder = ConfigurationManager.AppSettings["AuditLogFolder"];

            var eventHandler = new RabbitMQDomainEventHandler("127.0.0.1", "cqrs_user", "SeeQueErEs", "PensioenSysteem.AuditLog", HandleEvent);
            eventHandler.Start();

            Console.WriteLine("AuditLog viewer gestart. Druk een toets om te stoppen.");
            Console.ReadKey(true);

            eventHandler.Stop();
        }