Beispiel #1
0
        public void Handle <T>(T message)
        {
            var handlers = handlerFactory.GetHandlerFor <T>();

            foreach (var handler in handlers)
            {
                handler.Handle(message);

                handlerFactory.Release(handler);
            }
        }