This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdistributedeventbrokertransports.html
39 lines (39 loc) · 2.14 KB
/
distributedeventbrokertransports.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
layout: documentation
title: Distributed Event Broker
teaser: Appccelerates your local event broker until it fires over process boundaries
navigation:
- name: Tutorial
link: distributedeventbrokertutorial.html
- name: Transports
link: distributedeventbrokertransports.html
- name: Scoping & Identification
link: distributedeventbrokerscoping.html
- name: Customization
link: distributedeventbrokercustomization.html
- name: Restrictions
link: distributedeventbrokerrestrictions.html
---
<h2>Transport layers</h2>
<p>The sections below are not meant to serve as an introduction into the specific transport layers. For transport layer specific setup, read the documentation pages provided by the project owners. </p>
<h3>NServiceBus</h3>
<script type="syntaxhighlighter" class="brush: csharp"><![CDATA[IBus bus = // Get IBus instance
var extension = new NServiceBusDistributedEventBrokerExtension("DistributedEventBroker", bus);
eventBroker.AddDistributedExtension(extension);
]]>
</script>
<p>Make sure that Appccelerate.DistributedEventBroker.NServiceBus.dll is scanned by NServiceBus when auto loading of message handlers is enabled. </p>
<h3>MassTransit</h3>
<script type="syntaxhighlighter" class="brush: csharp"><![CDATA[IServiceBus serviceBus = // Get IServiceBus instance
var extension = new MassTransitDistributedEventBrokerExtension("DistributedEventBroker", serviceBus);
eventBroker.AddDistributedExtension(extension);
]]>
</script>
<p>Make sure the <tt>MassTransitEventFiredHandler</tt> is registered with transient life time in the underlying container. When supported, use assembly scanning functionality of container and include Appccelerate.DistributedEventBroker.MassTransit.dll in the search. </p>
<h3>RhinoESB</h3>
<script type="syntaxhighlighter" class="brush: csharp"><![CDATA[IServiceBus serviceBus = // Get IServiceBus instance
var extension = new RhinoEsbDistributedEventBrokerExtension("DistributedEventBroker", serviceBus);
eventBroker.AddDistributedExtension(extension);
]]>
</script>
<p>Make sure the <tt>RhinoEsbEventFiredHandler</tt> is registered in the windsor container. </p>