File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
src/Samples/KitchenSink/MartenAndRabbitIssueService Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 20
20
// just to see things work
21
21
opts . PublishAllMessages ( )
22
22
. 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 ( ) ;
28
24
29
25
opts . ListenToRabbitQueue ( "issue_events" ) . UseDurableInbox ( ) ;
30
26
34
30
// how you *could* customize the connection to Rabbit MQ
35
31
factory . HostName = "localhost" ;
36
32
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 ( ) ; ;
38
39
} ) ;
39
40
40
41
// This is actually important, this directs
You can’t perform that action at this time.
0 commit comments