Skip to content

Commit a137a33

Browse files
author
Emile Joubert
committed
Further 0.9.1 updates
Unremove connection start mechanisms, generate exchange declare correctly
1 parent 57cc257 commit a137a33

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

projects/client/RabbitMQ.Client/src/client/api/IModel.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ void ExchangeDeclare(string exchange,
149149
string type,
150150
bool passive,
151151
bool durable,
152-
[AmqpUnsupported("RabbitMQ.Client.Framing.v0_9_1")]
152+
[AmqpFieldMapping("RabbitMQ.Client.Framing.v0_9_1", "reserved2")]
153153
bool autoDelete,
154-
[AmqpUnsupported("RabbitMQ.Client.Framing.v0_9_1")]
154+
[AmqpFieldMapping("RabbitMQ.Client.Framing.v0_9_1", "reserved3")]
155155
bool @internal,
156156
[AmqpNowaitArgument(null)]
157-
[AmqpUnsupported("RabbitMQ.Client.Framing.v0_9_1")]
157+
[AmqpFieldMapping("RabbitMQ.Client.Framing.v0_9_1", "noWait")]
158158
bool nowait,
159159
IDictionary arguments);
160160

@@ -660,7 +660,6 @@ void HandleChannelClose(ushort replyCode,
660660
void HandleConnectionStart(byte versionMajor,
661661
byte versionMinor,
662662
IDictionary serverProperties,
663-
[AmqpUnsupported("RabbitMQ.Client.Framing.v0_9_1")]
664663
byte[] mechanisms,
665664
byte[] locales);
666665

projects/client/RabbitMQ.Client/src/client/impl/ModelBase.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ public void TransmitAndEnqueue(Command cmd, IRpcContinuation k)
303303
}
304304
catch (AlreadyClosedException)
305305
{
306-
int i = 1;
307306
// Ignored, since the continuation will be told about
308307
// the closure via an OperationInterruptedException because
309308
// of the shutdown event propagation.
@@ -411,18 +410,6 @@ public void HandleConnectionStart(byte versionMajor,
411410
IDictionary serverProperties,
412411
byte[] mechanisms,
413412
byte[] locales)
414-
{
415-
HandleConnectionStart(versionMajor,
416-
versionMinor,
417-
serverProperties,
418-
locales);
419-
details.m_mechanisms = mechanisms;
420-
}
421-
422-
public void HandleConnectionStart(byte versionMajor,
423-
byte versionMinor,
424-
IDictionary serverProperties,
425-
byte[] locales)
426413
{
427414
if (m_connectionStartCell == null)
428415
{
@@ -436,6 +423,7 @@ public void HandleConnectionStart(byte versionMajor,
436423
details.m_versionMajor = versionMajor;
437424
details.m_versionMinor = versionMinor;
438425
details.m_serverProperties = serverProperties;
426+
details.m_mechanisms = mechanisms;
439427
details.m_locales = locales;
440428
m_connectionStartCell.Value = details;
441429
m_connectionStartCell = null;

0 commit comments

Comments
 (0)