public void Run(IBus bus) { var consumers = container.ResolveAll<IConsumer>(); foreach (var consumer in consumers) { bus.Subscribe(consumer); } } }