Skip to content

Instantly share code, notes, and snippets.

@RyanHauert
RyanHauert / BootStrapper.cs
Created November 10, 2012 17:11
Raven saga persister setup
public class MyBootStrapper : CastleBootStrapper
{
protected override void ConfigureBusFacility(AbstractRhinoServiceBusConfiguration configuration)
{
base.ConfigureBusFacility(configuration);
configuration.AddMessageModule<RavenStoreProviderMessageModule>();
}
protected override void ConfigureContainer()
{
@RyanHauert
RyanHauert / CustomizeOutgoingMessages.cs
Created October 24, 2012 23:33
RSB 3.0 Customize DeliverBy
public class CustomizeOutgoingMessages : ICustomizeOutgoingMessages
{
public void Customize(OutgoingMessageInformation messageInformation)
{
// Messages is an object[] containing the batch of messages being sent.
// This will only have one message unless you send multiple
// messages at once with using IServiceBus.
var message = messageInformation.Messages[0] as SomeTemporaryMessage;
if (message != null)
{
@RyanHauert
RyanHauert / App.config
Created October 24, 2012 23:23
RSB 3.0 Customize outgoing messages by destination
<rhino.esb>
<bus threadCount="1"
numberOfRetries="5"
endpoint="rhino.queues://localhost/test_queue?volatile=true"
queueIsolationLevel="ReadCommitted" />
</rhino.esb>