public void Handle <T>(T message) { var handlers = handlerFactory.GetHandlerFor <T>(); foreach (var handler in handlers) { handler.Handle(message); handlerFactory.Release(handler); } }
public void Handle <T>(T message) { var handlers = handlerFactory.GetHandlerFor <T>(); foreach (var handler in handlers) { handler.Handle(message); handlerFactory.Release(handler); } }