File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
RabbitMQ.Client/src/client/impl Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public static IList<string> IdentifierParts(string name) {
133
133
public static string MangleClass ( string name ) {
134
134
StringBuilder sb = new StringBuilder ( ) ;
135
135
foreach ( String s in IdentifierParts ( name ) ) {
136
- sb . Append ( Char . ToUpper ( s [ 0 ] ) + s . Substring ( 1 ) . ToLower ( ) ) ;
136
+ sb . Append ( Char . ToUpperInvariant ( s [ 0 ] ) + s . Substring ( 1 ) . ToLowerInvariant ( ) ) ;
137
137
}
138
138
return sb . ToString ( ) ;
139
139
}
@@ -143,9 +143,9 @@ public static string MangleMethod(string name) {
143
143
bool useUpper = false ;
144
144
foreach ( String s in IdentifierParts ( name ) ) {
145
145
if ( useUpper ) {
146
- sb . Append ( Char . ToUpper ( s [ 0 ] ) + s . Substring ( 1 ) . ToLower ( ) ) ;
146
+ sb . Append ( Char . ToUpperInvariant ( s [ 0 ] ) + s . Substring ( 1 ) . ToLowerInvariant ( ) ) ;
147
147
} else {
148
- sb . Append ( s . ToLower ( ) ) ;
148
+ sb . Append ( s . ToLowerInvariant ( ) ) ;
149
149
useUpper = true ;
150
150
}
151
151
}
Original file line number Diff line number Diff line change @@ -691,7 +691,13 @@ public void HandleConnectionUnblocked()
691
691
692
692
void IDisposable . Dispose( )
693
693
{
694
- Abort ( ) ;
694
+ try {
695
+ Abort ( ) ;
696
+ }
697
+ finally
698
+ {
699
+ m_models . Clear ( ) ;
700
+ }
695
701
if ( ShutdownReport . Count > 0 )
696
702
{
697
703
foreach ( ShutdownReportEntry entry in ShutdownReport )
Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ public override string ToString()
373
373
374
374
void IDisposable . Dispose ( )
375
375
{
376
- m_delegate . Close ( ) ;
376
+ Abort ( ) ;
377
377
}
378
378
379
379
public void ConnectionTuneOk ( ushort channelMax ,
You can’t perform that action at this time.
0 commit comments