Skip to content

Commit 32817c1

Browse files
committed
Correcting a little syntax problem in documentation samples
1 parent e23157d commit 32817c1

File tree

1 file changed

+7
-6
lines changed
  • src/Samples/KitchenSink/MartenAndRabbitIssueService

1 file changed

+7
-6
lines changed

src/Samples/KitchenSink/MartenAndRabbitIssueService/Program.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020
// just to see things work
2121
opts.PublishAllMessages()
2222
.ToRabbitExchange("issue_events", exchange => exchange.BindQueue("issue_events"))
23-
.UseDurableOutbox()
24-
// Even when calling AddResourceSetupOnStartup(), we still
25-
// need to AutoProvision to ensure any declared queues, exchanges, or
26-
// bindings with the Rabbit MQ broker to be built as part of bootstrapping time
27-
.AutoProvision();
23+
.UseDurableOutbox();
2824

2925
opts.ListenToRabbitQueue("issue_events").UseDurableInbox();
3026

@@ -34,7 +30,12 @@
3430
// how you *could* customize the connection to Rabbit MQ
3531
factory.HostName = "localhost";
3632
factory.Port = 5672;
37-
});
33+
})
34+
35+
// Even when calling AddResourceSetupOnStartup(), we still
36+
// need to AutoProvision to ensure any declared queues, exchanges, or
37+
// bindings with the Rabbit MQ broker to be built as part of bootstrapping time
38+
.AutoProvision();;
3839
});
3940

4041
// This is actually important, this directs

0 commit comments

Comments
 (0)