@@ -389,14 +389,14 @@ protected virtual void handleAckNack(ulong deliveryTag, bool multiple, bool isNa
389
389
lock ( m_unconfirmedSet . SyncRoot )
390
390
{
391
391
if ( multiple ) {
392
- for ( ulong i = ( ulong ) m_unconfirmedSet [ 0 ] ; i <= deliveryTag ; i ++ ) {
393
- // removes potential duplicates
394
- while ( m_unconfirmedSet . Remove ( i ) )
395
- { }
392
+ for ( ulong i = ( ulong ) m_unconfirmedSet [ 0 ] ; i <= deliveryTag ; i ++ ) {
393
+ // removes potential duplicates
394
+ while ( m_unconfirmedSet . Remove ( i ) )
395
+ { }
396
396
}
397
397
} else {
398
398
while ( m_unconfirmedSet . Remove ( deliveryTag ) )
399
- { }
399
+ { }
400
400
}
401
401
m_onlyAcksReceived = m_onlyAcksReceived && ! isNack ;
402
402
if ( m_unconfirmedSet . Count == 0 )
@@ -572,8 +572,8 @@ public void HandleBasicDeliver(string consumerTag,
572
572
{
573
573
if ( DefaultConsumer == null ) {
574
574
throw new InvalidOperationException ( "Unsolicited delivery -" +
575
- " see IModel.DefaultConsumer to handle this" +
576
- " case." ) ;
575
+ " see IModel.DefaultConsumer to handle this" +
576
+ " case." ) ;
577
577
}
578
578
else {
579
579
consumer = DefaultConsumer ;
@@ -686,8 +686,8 @@ public void HandleConnectionStart(byte versionMajor,
686
686
{
687
687
ShutdownEventArgs reason =
688
688
new ShutdownEventArgs ( ShutdownInitiator . Library ,
689
- CommonFraming . Constants . CommandInvalid ,
690
- "Unexpected Connection.Start" ) ;
689
+ CommonFraming . Constants . CommandInvalid ,
690
+ "Unexpected Connection.Start" ) ;
691
691
( ( ConnectionBase ) m_session . Connection ) . Close ( reason ) ;
692
692
}
693
693
ConnectionStartDetails details = new ConnectionStartDetails ( ) ;
@@ -706,25 +706,25 @@ public void HandleConnectionClose(ushort replyCode,
706
706
ushort methodId )
707
707
{
708
708
ShutdownEventArgs reason = new ShutdownEventArgs ( ShutdownInitiator . Peer ,
709
- replyCode ,
710
- replyText ,
711
- classId ,
712
- methodId ) ;
709
+ replyCode ,
710
+ replyText ,
711
+ classId ,
712
+ methodId ) ;
713
713
try
714
714
{
715
715
( ( ConnectionBase ) m_session . Connection ) . InternalClose ( reason ) ;
716
716
_Private_ConnectionCloseOk ( ) ;
717
- SetCloseReason ( ( m_session . Connection ) . CloseReason ) ;
717
+ SetCloseReason ( ( m_session . Connection ) . CloseReason ) ;
718
718
}
719
719
catch ( IOException )
720
720
{
721
- // Ignored. We're only trying to be polite by sending
722
- // the close-ok, after all.
721
+ // Ignored. We're only trying to be polite by sending
722
+ // the close-ok, after all.
723
723
}
724
724
catch ( AlreadyClosedException )
725
725
{
726
- // Ignored. We're only trying to be polite by sending
727
- // the close-ok, after all.
726
+ // Ignored. We're only trying to be polite by sending
727
+ // the close-ok, after all.
728
728
}
729
729
}
730
730
@@ -748,10 +748,10 @@ public void HandleChannelClose(ushort replyCode,
748
748
ushort methodId )
749
749
{
750
750
SetCloseReason ( new ShutdownEventArgs ( ShutdownInitiator . Peer ,
751
- replyCode ,
752
- replyText ,
753
- classId ,
754
- methodId ) ) ;
751
+ replyCode ,
752
+ replyText ,
753
+ classId ,
754
+ methodId ) ) ;
755
755
756
756
m_session . Close ( m_closeReason , false ) ;
757
757
try {
@@ -797,14 +797,14 @@ public void ExchangeDeclarePassive(string exchange)
797
797
_Private_ExchangeDeclare ( exchange , "" , true , false , false , false , false , null ) ;
798
798
}
799
799
800
- public void ExchangeDeclareNowait ( string exchange ,
801
- string type ,
802
- bool durable ,
803
- bool autoDelete ,
804
- IDictionary < string , object > arguments )
805
- {
806
- _Private_ExchangeDeclare ( exchange , type , false , durable , autoDelete , false , true , arguments ) ;
807
- }
800
+ public void ExchangeDeclareNoWait ( string exchange ,
801
+ string type ,
802
+ bool durable ,
803
+ bool autoDelete ,
804
+ IDictionary < string , object > arguments )
805
+ {
806
+ _Private_ExchangeDeclare ( exchange , type , false , durable , autoDelete , false , true , arguments ) ;
807
+ }
808
808
809
809
public abstract void _Private_ExchangeDeclare ( string exchange ,
810
810
string type ,
@@ -826,7 +826,7 @@ public void ExchangeDelete(string exchange)
826
826
ExchangeDelete ( exchange , false ) ;
827
827
}
828
828
829
- public void ExchangeDeleteNowait ( string exchange ,
829
+ public void ExchangeDeleteNoWait ( string exchange ,
830
830
bool ifUnused )
831
831
{
832
832
_Private_ExchangeDelete ( exchange , ifUnused , false ) ;
@@ -851,7 +851,7 @@ public void ExchangeBind(string destination,
851
851
_Private_ExchangeBind ( destination , source , routingKey , false , arguments ) ;
852
852
}
853
853
854
- public void ExchangeBindNowait ( string destination ,
854
+ public void ExchangeBindNoWait ( string destination ,
855
855
string source ,
856
856
string routingKey ,
857
857
IDictionary < string , object > arguments )
@@ -898,14 +898,14 @@ public QueueDeclareOk QueueDeclarePassive(string queue)
898
898
return QueueDeclare ( queue , true , false , false , false , null ) ;
899
899
}
900
900
901
- public void QueueDeclareNowait ( string queue , bool durable , bool exclusive ,
902
- bool autoDelete , IDictionary < string , object > arguments )
903
- {
904
- _Private_QueueDeclare ( queue , false , durable , exclusive , autoDelete , true , arguments ) ;
905
- }
901
+ public void QueueDeclareNoWait ( string queue , bool durable , bool exclusive ,
902
+ bool autoDelete , IDictionary < string , object > arguments )
903
+ {
904
+ _Private_QueueDeclare ( queue , false , durable , exclusive , autoDelete , true , arguments ) ;
905
+ }
906
906
907
907
public QueueDeclareOk QueueDeclare ( string queue , bool durable , bool exclusive ,
908
- bool autoDelete , IDictionary < string , object > arguments )
908
+ bool autoDelete , IDictionary < string , object > arguments )
909
909
{
910
910
return QueueDeclare ( queue , false , durable , exclusive , autoDelete , arguments ) ;
911
911
}
@@ -917,7 +917,7 @@ public QueueDeclareRpcContinuation() { }
917
917
}
918
918
919
919
private QueueDeclareOk QueueDeclare ( string queue , bool passive , bool durable , bool exclusive ,
920
- bool autoDelete , IDictionary < string , object > arguments )
920
+ bool autoDelete , IDictionary < string , object > arguments )
921
921
{
922
922
QueueDeclareRpcContinuation k = new QueueDeclareRpcContinuation ( ) ;
923
923
Enqueue ( k ) ;
@@ -949,7 +949,7 @@ public void QueueBind(string queue,
949
949
QueueBind ( queue , exchange , routingKey , null ) ;
950
950
}
951
951
952
- public void QueueBindNowait ( string queue ,
952
+ public void QueueBindNoWait ( string queue ,
953
953
string exchange ,
954
954
string routingKey ,
955
955
IDictionary < string , object > arguments )
@@ -989,7 +989,7 @@ public uint QueueDelete(string queue)
989
989
return QueueDelete ( queue , false , false ) ;
990
990
}
991
991
992
- public void QueueDeleteNowait ( string queue ,
992
+ public void QueueDeleteNoWait ( string queue ,
993
993
bool ifUnused ,
994
994
bool ifEmpty )
995
995
{
@@ -1037,7 +1037,7 @@ public bool WaitForConfirms(TimeSpan timeout, out bool timedOut)
1037
1037
{
1038
1038
TimeSpan elapsed = stopwatch . Elapsed ;
1039
1039
if ( elapsed > timeout || ! Monitor . Wait (
1040
- m_unconfirmedSet . SyncRoot , timeout - elapsed ) )
1040
+ m_unconfirmedSet . SyncRoot , timeout - elapsed ) )
1041
1041
{
1042
1042
timedOut = true ;
1043
1043
return true ;
@@ -1129,7 +1129,7 @@ public string BasicConsume(string queue,
1129
1129
// Non-nowait. We have an unconventional means of getting
1130
1130
// the RPC response, but a response is still expected.
1131
1131
_Private_BasicConsume ( queue , consumerTag , noLocal , noAck , exclusive ,
1132
- /*nowait:*/ false , arguments ) ;
1132
+ /*nowait:*/ false , arguments ) ;
1133
1133
k . GetReply ( ) ;
1134
1134
string actualConsumerTag = k . m_consumerTag ;
1135
1135
@@ -1177,10 +1177,10 @@ public void HandleBasicCancelOk(string consumerTag)
1177
1177
( BasicConsumerRpcContinuation ) m_continuationQueue . Next ( ) ;
1178
1178
1179
1179
Trace . Assert ( k . m_consumerTag == consumerTag , string . Format (
1180
- "Consumer tag mismatch during cancel: {0} != {1}" ,
1181
- k . m_consumerTag ,
1182
- consumerTag
1183
- ) ) ;
1180
+ "Consumer tag mismatch during cancel: {0} != {1}" ,
1181
+ k . m_consumerTag ,
1182
+ consumerTag
1183
+ ) ) ;
1184
1184
1185
1185
lock ( m_consumers )
1186
1186
{
@@ -1290,14 +1290,14 @@ public void BasicPublish(string exchange,
1290
1290
basicProperties = CreateBasicProperties ( ) ;
1291
1291
}
1292
1292
if ( m_nextPubSeqNo > 0 ) {
1293
- lock ( m_unconfirmedSet . SyncRoot )
1294
- {
1295
- if ( ! m_unconfirmedSet . Contains ( m_nextPubSeqNo ) )
1296
- {
1297
- m_unconfirmedSet . Add ( m_nextPubSeqNo ) ;
1298
- }
1293
+ lock ( m_unconfirmedSet . SyncRoot )
1294
+ {
1295
+ if ( ! m_unconfirmedSet . Contains ( m_nextPubSeqNo ) )
1296
+ {
1297
+ m_unconfirmedSet . Add ( m_nextPubSeqNo ) ;
1298
+ }
1299
1299
m_nextPubSeqNo ++ ;
1300
- }
1300
+ }
1301
1301
}
1302
1302
_Private_BasicPublish ( exchange ,
1303
1303
routingKey ,
@@ -1337,12 +1337,12 @@ void IDisposable.Dispose()
1337
1337
1338
1338
public void Close ( )
1339
1339
{
1340
- Close ( CommonFraming . Constants . ReplySuccess , "Goodbye" ) ;
1340
+ Close ( CommonFraming . Constants . ReplySuccess , "Goodbye" ) ;
1341
1341
}
1342
1342
1343
1343
public void Close ( ushort replyCode , string replyText )
1344
1344
{
1345
- Close ( replyCode , replyText , false ) ;
1345
+ Close ( replyCode , replyText , false ) ;
1346
1346
}
1347
1347
1348
1348
public void Abort ( )
@@ -1375,10 +1375,10 @@ public void Close(ShutdownEventArgs reason, bool abort)
1375
1375
k . Wait ( ) ;
1376
1376
} catch ( AlreadyClosedException ace ) {
1377
1377
if ( ! abort )
1378
- throw ace ;
1378
+ throw ace ;
1379
1379
} catch ( IOException ioe ) {
1380
1380
if ( ! abort )
1381
- throw ioe ;
1381
+ throw ioe ;
1382
1382
}
1383
1383
}
1384
1384
0 commit comments