Solutions    |    Downloads    |    License    |    Documentation    |    Training    |    Support    |    Customers    |    About Us

One Way/Send Only Endpoints

Last Updated: Feb 08, 2013 01:50AM IST

The equivalent to the one way bus in Rhino Service Bus is what we in NServiceBus call “Send only mode”.
In short you would use this in endpoints whose only purpose is sending messages, websites are often a good example of send only endpoints. We’ll now take closer look at the code needed to start an endpoint in send only mode.

var bus = Configure.With()
    .DefaultBuilder()
    .XmlSerializer()
    .MsmqTransport()
    .UnicastBus()
    .SendOnly();

bus.Send(new TestMessage());

The only configuration needed when running in this mode is the destination of the messages you’re sending, you can do this either inline or through configuration.

A working sample can be found in the \samples folder of the NServiceBus package.

About NServiceBus    |    Contact Us    |    Privacy    |    Follow us on:   
Copyright 2010-2013 NServiceBus. All rights reserved
support@nservicebus.com
http://assets2.desk.com/raca8b478c9bd89640c451013350d59caa6b66ee1/javascripts/
nservicebus
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
true
Invalid characters found
/customer/en/portal/articles/autocomplete
There was an error contacting Get Satisfaction
View All
0
discussions
replies
Questions
Ideas
Problems
Praise