Skip to content

Instantly share code, notes, and snippets.

@andreasohlund
Created September 5, 2010 13:53
Show Gist options
  • Save andreasohlund/566036 to your computer and use it in GitHub Desktop.
Save andreasohlund/566036 to your computer and use it in GitHub Desktop.
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