Skip to content

Commit 1832c19

Browse files
Multi-protocol support is gone
1 parent 6844b0e commit 1832c19

File tree

1 file changed

+0
-65
lines changed

1 file changed

+0
-65
lines changed

docs/wikipages/data.ApiOverview.txt

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -49,71 +49,6 @@ discover in the library implementation. Applications cannot rely on
4949
any classes, interfaces, member variables etc. that appear within
5050
private namespaces remaining stable across releases of the library.
5151

52-
** Multi-protocol support
53-
54-
Class [code RabbitMQ.Client.Protocols] contains convenient predefined
55-
[code IProtocol] instances that permit selection of a supported
56-
protocol variant. At the time of writing, the library supports:
57-
58-
- [code Protocols.DefaultProtocol]: An alias to one of the other
59-
protocols. At the time of writing, [b the default protocol is [code
60-
AMQP_0_9_1]].
61-
62-
- [code Protocols.AMQP_0_8]: Standard AMQP 0-8 protocol, including
63-
[code access.request], [code basic.recover-async] and [code queue.unbind].
64-
65-
- [code Protocols.AMQP_0_8_QPID]: AMQP 0-8 as extended by QPid's 0-8
66-
M1 release, without [code access.request] and with extra parameters
67-
available on certain methods.
68-
69-
- [code Protocols.AMQP_0_9]: Standard AMQP 0-9 protocol, including
70-
[code access.request] and [code basic.recover-async], but excluding
71-
the [code Message] content-class and other areas of the specification
72-
marked "work in progress".
73-
74-
- [code Protocols.AMQP_0_9_1]: Standard AMQP 0-9-1 protocol.
75-
76-
The [code Protocols] class also contains some convenience functions
77-
for retrieving an IProtocol from a string, from the environment or
78-
from a .NET XML configuration file. The protocol names permitted are
79-
the same as the static instance variables on class [code Protocols],
80-
that is, [code AMQP_0_8], [code AMQP_0_8_QPID], [code AMQP_0_9],
81-
[code AMQP_0_9_1] and [code DefaultProtocol].
82-
83-
The following code binds [code p] to the [code Protocols.AMQP_0_9]
84-
instance by looking it up dynamically:
85-
86-
@code java
87-
IProtocol p = Protocols.SafeLookup("AMQP_0_9");
88-
89-
Given the following [code App.config] snippet,
90-
91-
@code
92-
<appSettings>
93-
<add key="my-protocol" value="AMQP_0_9"/>
94-
</appSettings>
95-
96-
the following code will also bind [code p] to the 0-9 [code IProtocol]
97-
implementation:
98-
99-
@code java
100-
IProtocol p = Protocols.FromConfiguration("my-protocol");
101-
102-
An alternative is [code Protocols.FromEnvironmentVariable()], which
103-
reads the name of the protocol variant to return from the shell
104-
environment variable named by [code Protocols.EnvironmentVariable] (at
105-
the time of writing, [code AMQP_PROTOCOL]).
106-
107-
Finally, [code Protocols.FromEnvironment()] tries [code
108-
FromConfiguration()] first, and if no setting is found, falls back to
109-
[code FromEnvironmentVariable()].
110-
111-
If no argument is passed to [code FromEnvironment()] or [code
112-
FromConfiguration()], the value of [code
113-
Protocols.DefaultAppSettingsKey] is used. (At the time of writing, the
114-
default appSettings key is [code AMQP_PROTOCOL], the same as the name
115-
of the shell environment variable scanned.)
116-
11752
** Connecting to a broker
11853

11954
The following two code snippets connect to an AMQP broker:

0 commit comments

Comments
 (0)