Moved "lazy boy" initialization code to RebusInitializer class, so it can be called and bus started when IBus instance is first resolved. This way the bus instance can be injected into another IHostedService or used in Startup's Configure method.
Closes #61
Rebus is MIT-licensed. The code submitted in this pull request needs to carry the MIT license too. By leaving this text in, I hereby acknowledge that the code submitted in the pull request has the MIT license and can be merged with the Rebus codebase.
Moved "lazy boy" initialization code to RebusInitializer class, so it can be called and bus started when IBus instance is first resolved. This way the bus instance can be injected into another IHostedService or used in Startup's Configure method.
Closes #61
Rebus is MIT-licensed. The code submitted in this pull request needs to carry the MIT license too. By leaving this text in, I hereby acknowledge that the code submitted in the pull request has the MIT license and can be merged with the Rebus codebase.