Created
September 5, 2010 13:53
-
-
Save andreasohlund/566036 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using NServiceBus.ObjectBuilder.Common.Config; | |
using NServiceBus.ObjectBuilder.Spring; | |
using Spring.Context.Support; | |
using NServiceBus; | |
namespace CoreOnly | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var springContext = new GenericApplicationContext(); | |
var builder = new SpringObjectBuilder(springContext); | |
var bus = NServiceBus.Configure.With() | |
.Log4Net() | |
.UsingContainer<SpringObjectBuilder>(builder) | |
.MsmqTransport() | |
.UnicastBus() | |
.LoadMessageHandlers() | |
.CreateBus() | |
.Start(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment